Paging and Sorting with DataGrid Controls

A great thing about components is that you get a lot of goodies with them. You just need to know where to look. Two such goodies that come with DataGrid controls are (1) the ability to split up data into logical pages (paging) instead of a single, monolithic page, and (2) the ability to reorder the data in the DataGrid control by column (sorting). When you know where to find all the pieces, it is a relatively straightforward matter to use these capabilities. We will start with paging, continuing to use the BindControlsDemo.sln for this example, too.

Using a DataGrid Control for Paging

Suppose again that we are working with the customer contact list. We may ultimately want to view all customers but need ...

Get Visual Basic® .NET Power Coding 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.