HIDE paging controls in datagrid**

K

Kruno

I want to hide paging controls in Datagrid if
there is nothing to page...If there is nothing to
page datagrid still shows them (?!)

how can I do that??
 
K

Ken Cox [Microsoft MVP]

Hey Kruno,

How about hiding it if there's one or no pages?

DataGrid1.DataBind()
DataGrid1.PagerStyle.Visible = _
Not (DataGrid1.PageCount < 2)

Does this help?

Ken
Microsoft MVP [ASP.NET]
Toronto
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top