Adding sorting ability to a repeater control

By Jamsi • Feb 11th, 2006 • Category: ASP.NET

This code snippet shows you how to sort a repeater web form control. This is handy when you are using scrollable repeater tables.


DataView dv = ds.Tables[0].DefaultView;
dv.Sort = "firstname asc";
rptUsers.DataSource = dv;

No related posts.


FREE NEWSLETTER -> Want Tech Tips Sent Straight to your Inbox?

Grab our Newsletter to Ensure your PC is Running Smooth!

Jamsi is currently studying a full time Bachelor of Computer/Business degree and working part time as an Internet Security Consultant.
Email this author | All posts by Jamsi

Leave a Reply