I have a datagridview that is using paging, it works perfectly fine and I have a drop down that allows the user to change the ‘PageSize’ property – 10, 15, 25, 50, 100, 1000 etc.
When I select a value for the PageSize that is greater than the row count for the grid the Pager is disappearing from both the top & bottom of the grid.
Anyone got any ideas why?
I’m using a custom PageTemplate element in the aspx page.
Cheers
Ollie
Behaviour is by design. You can force it to remain visible by setting the Visible property of the pager row (accessed using either TopPagerRow or BottomPagerRow property) in the grid’s OnDataBound event. For example: