Skip to main content

ColumnSortMode Enum

Lists the values that specify how a column’s data should be sorted.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data

Declaration

public enum ColumnSortMode

Members

Name Description
Default

Switches between DisplayText and Value modes based on the column editor’s type.

Value

Sorts the column’s data by the column’s edit values (these are synchronized with the bound data source’s values).

DisplayText

Sorts the column’s data by the column’s display text (the strings displayed within the column’s cells).

Custom

Applies sort options specified in the CustomColumnSort event handler.

In data grids, this mode also applies group options from the CustomColumnGroup event handler.

Related API Members

The following properties accept/return ColumnSortMode values:

Library Related API Members
WinForms Controls GridColumn.SortMode
TreeListColumn.SortMode
WPF Controls ColumnBase.SortMode
TreeViewControl.SortMode
ASP.NET Web Forms Controls ASPxGridBehaviorSettings.SortMode
GridDataColumnSettings.SortMode
WinUI Controls ColumnBase.SortMode

See Also