ColumnView.ClearSorting() Method
Clears sorting applied to the View.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
Remarks
If there isn’t any grouping applied to the view, the ClearSorting method removes all the sorting applied to any columns.
If grouping is applied (in Grid Views), this method removes the sorting only from the columns which aren’t used to group data. To remove grouping call the GridView.ClearGrouping method.
To clear sorting by a particular column, set the column’s GridColumn.SortOrder property to ColumnSortOrder.None.
Please refer to the Sorting in Code topic for more information about sorting data.