Hour 19. Paging Through the DataGrid's Data

In the DataGrid examples we have worked on thus far, the DataGrid has been used to show only a handful of records. The Books and Customers tables each contains a measly five records. More often, though, database tables contain tens, hundreds, thousands, hundreds of thousands, or millions of rows. For example, a Customers table at a phone company like Southwestern Bell would have millions of entries.

In the examples, we have used the DataGrid to show all of the records of these database tables at once. With just five table records, it's no big deal, but imagine displaying ten thousand items in a DataGrid on a single Web page! The more data shown to a user, the harder it is for the user to digest that ...

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.