Data Source Sorting
Imagine that you are working with a database table that contains 3 billion records and you want to enable users to both sort the records and page through the records contained in this table. In that case, you want to implement both data source sorting and paging.
The page in Listing 18.27 contains a GridView
and ObjectDataSource
control. The GridView
has both its AllowSorting
and AllowPaging
properties enabled (see Figure 18.7).
Figure 18.7. Paging and sorting database records.
Listing 18.27. ShowDSSorting.aspx
The ObjectDataSource ...
Get ASP.NET 4 Unleashed 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.