Configuring the DataGrid to Support Paging

In order to provide paging support in a DataGrid, the DataGrid must be configured to support paging. This is accomplished through the setting of a few properties via the DataGrid's Property Builder. Let's create a new ASP.NET Web page to demonstrate how to provide paging support for a DataGrid. Name this new ASP.NET Web page PagingDemo.aspx and drag a DataGrid Web control from the Toolbox and onto the designer. This DataGrid will eventually allow the user to page through the records in the Customers table.

When the user clicks the navigational hyperlinks to view a different page of data, the ASP.NET Web ...

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.