However, not so many developers know that the PagedDataSource Class used to provide the DataGrids paging features can be used directly to facilitate paging on any type of DataBound control. This tutorial will demonstrate how this can be done. We will also see how both sorting and paging can be combined to implement a sorted and paged repeater.
This tutorial will explain how to implement sorting and paging within a repeater Server Control. The techniques shown can also be used to implement sorting and paging with other DataBound controls such as a DataList. First we will see how to implement sorting columns in both ascending and descending order, simply by allowing the user to click the column headers in a table. As you probably alread know, the DataGrid Server Control has built-in paging features, which means that to implement paging in a DataGrid control, all you need to do is set a couple of the DataGrids properties.