Sorting and Paging with a Repeater Support

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. 

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.

- OR -

Kevin Marshall

Kevin MarshallI live in Perth, Scotland and am senior programmer with Ltd. I have been involved in computer programming since 1990, web based programming using ASP since 1997 and have been building ASP.NET applications since ASP.NET Beta 2 was released.

I have been an avid Dreamweaver user since Version 1 was launched and with the release of MX have moved into developing extensions. WebXeL run a website dedicated to the development of free and commercial Dreamweaver MX extensions for ASP.NET, the site can be found at

See All Postings From Kevin Marshall >>