views:

61

answers:

0

I have a gridview bound to an objectdatasource which handles paging. This all works great until there is less rows to display than the paging allows. In my case the paging is set to 50 but there are only 30 rows to display. The grid renders correctly but i have (1 2 3 4 ...) pages displayed in the grid. When you select a page it returns an empty grid, as you would expect. How can i hide these pages or stop the pager displaying linksto empty grid view.