HIDE paging controls in datagrid**

  • Thread starter Thread starter Kruno
  • Start date Start date
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??
 
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

Back
Top