Skip to main content
A newer version of this page is available. .

ColumnView.ClearSorting() Method

Clears sorting applied to the View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public virtual void ClearSorting()

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.

See Also