The demo represents the sorting capabilities of Telerik RadGrid. Three sorting directions are supported: Ascending,
Descending and Default (no sorting), which can be changed by clicking on the column header text. The sorting functionality can be enabled by setting the
AllowSortingproperty to true. Furthermore, to force only two-way sorting (ascending and descending), set the GridTableView.AllowNaturalSort or
GridTableView.SortExpressions.AllowNaturalSort property to false.
Use RadGrid.SortingSettings.SortedBackColor to apply color to all the sorted columns, or GridColumn.SortedBackColor to apply color to the respective column (GridColumn setting overrides the SortedBackColor from SortingSettings).
Telerik RadGrid also supports Multi-Column Sorting and Sorting Expressions, which are demonstrated in more details in the Advanced sorting example in this section.