I have followed Custom Pagination article to implement the custom pagination using GridView.
I have also done custom pagination using the DataGrid but i am still confused on following things.
- DataGrid which is there in the ASP.NET 1.1 having VirtualItemCount which is set to render the pagination interface [1 2 3 4 5 … something like this]
- GridView does not have the above mentioned property then how to generate the pagination UI?
Paging in the GridView isn’t nearly as powerful as I’d like, especially when it comes to templating. But there are a few options that work well enough. Try adding this to your grid view.
You can also use: NextPrevious, NumericFirstLast, and Numeric