Skip to main content

Sorting in Code

  • 2 minutes to read

#Sorting

The following methods and properties can be used to sort data.

#Unsorting

To unsort data by the values of a single column, do one of the following:

To clear sorting applied to a grid, use the DataControlBase.ClearSorting method.

NOTE

If grouping is applied, the DataControlBase.ClearSorting method preserves sorting applied to grouping columns, because group rows are always sorted.

#Sorting Events

When sorting data, the grid does the following.

NOTE

Group rows are always sorted. The StartSorting and EndSorting events are also raised before and after data is grouped.