Chapter 7. Paging Through Data Sources

 

Men acquire a particular quality by constantly acting a particular way…. You become just by performing just actions, temperate by performing temperate actions, brave by performing brave actions.

 
 --Aristotle

In real-world scenarios, pagination is an important issue when you have a lot of records to display. To preserve a good level of scalability and performance on the server, you might decide to show the records that form the key view of your application in equally sized pages. You would then want to create a pager bar that has a bunch of ad hoc buttons that allow users to navigate between pages. So with a data source, a sized view, and a pager bar, you are pretty much done; the DataGrid itself would do ...

Get Programming Microsoft® 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.