The following methods and properties can be used to sort data:
grid.Columns["ProductName"].SortOrder = ColumnSortOrder.Ascending;
To unsort data by the values of a single column, do one of the following:
Use the grid's GridControl.SortBy method:
To clear the sorting applied to the grid, use the DataControlBase.ClearSorting method.
If grouping is applied, the DataControlBase.ClearSorting method preserves sorting applied to grouping columns, because group rows are always sorted.
When sorting data, the grid does the following:
Group rows are always sorted. The StartSorting and EndSorting events are also raised before and after data is grouped.