Displaying a Different Page of Data
At this point we have configured the DataGrid to support paging, and have created a function that retrieves the data to be paged through, returning it as a DataSet. All that remains to be done is to specify what page of data should be displayed in the DataGrid.
Earlier we discussed that with paging enabled, the DataGrid displays only a subset of the data in the DataSource, but we didn't delve into the details of how this is accomplished. In addition to knowing what subset of records to display from the DataSource, the DataGrid must also be able to determine how many total pages of data there are in order to render the navigational controls. (For example, if the DataGrid is using the Next, Previous buttons navigation ...
Get SAMS Teach Yourself ASP.NET in 24 Hours 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.