Edit this page

Programmatic Sorting

Programmatic sorting is performed by adding a SortDescriptor object to the SortDescriptors collection of the control.

For example:

SortDescriptor sd = new SortDescriptor();
sd.Member = "ContactTitle";
sd.SortDirection = ListSortDirection.Descending;
Dim sd As New SortDescriptor()
sd.Member = "ContactTitle"
sd.SortDirection = ListSortDirection.Descending

Once the application is loaded, the RadGridView will be visualized as follows:

Adding several SortDescriptors to the collection will perform the sorting in the respective order.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article