brillox
asked on
gridview paging disappear
Can anyone can explain to me why if I render the ID column invisible on the gridview using this code...
the paging row disappear (so the paging is notdisplayed)
And how can I then not render the ID but keeping the paging ??
Thanks
the paging row disappear (so the paging is notdisplayed)
And how can I then not render the ID but keeping the paging ??
Thanks
Protected Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated
e.Row.Cells(0).Visible = False
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Dotnetthinker,
Yes you are right :)
Yes you are right :)
If e.Row.RowType = DataRow e.Row.Cells(0).Visible = False
to hide only datarows. Otherwise also Header, Footer and Pager are affected