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
 
Back
Top