Paging with the DataGrid
Letting the user page through data from a data store has become an important part of Web site development. An online retailer with 500 products doesn't want to provide one big list of all those products. It's much better to display a short list of products and provide links so the user can scroll through pages of the remaining products. The DataGrid lets you add paging functionality with either the built-in paging functions or a custom function.
The paging functionality works with the DataGrid's CurrentPageIndex property, which defines the page of data that's to be displayed, based on the number of records in the data source and the PageSize property of the DataGrid. The PageSize default value is 10 records per page. ...
Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.