Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColumnView.ClearSorting() Method

In This Article

Clears sorting applied to the View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#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