Skip to main content

ColumnSortMode Enum

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

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.Core.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

#Declaration

public enum ColumnSortMode

#Members

Name Description
Default

Sorts the column’s data according to the type of the editor assigned to the column.

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

Enables custom sorting of a column’s data. To implement custom sorting, handle the GridControl.CustomColumnSort event.

The Custom mode also enables custom grouping of rows when grouping is applied against the current column. To implement custom grouping, handle the GridControl.CustomColumnGroup event.

#Related API Members

The following properties accept/return ColumnSortMode values:

#Remarks

Use the following properties to specify how a column’s data is sorted. When sorting is applied to columns in the GridControl, use the ColumnBase.SortMode property.

See Also