New to Telerik UI for WPFStart a free 30-day trial

Programmatic Sorting

Updated on Sep 24, 2025

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

For example:

C#

	SortDescriptor sd = new SortDescriptor();
	sd.Member = "ContactTitle";
	sd.SortDirection = ListSortDirection.Descending;
	this.customersDataSource.SortDescriptors.Add(sd);

Once the application is loaded, the RadGridView will be visualized as follows: WPF RadDataServiceDataSource Programmatic Sorting

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

Not finding the help you need?
Contact Support