GridColumn.SortMode Property

Specifies how column values are sorted and grouped. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.1.dll

Declaration

[XtraSerializableProperty]
public ColumnSortMode SortMode { get; set; }
<XtraSerializableProperty>
Public Property SortMode As ColumnSortMode

Property Value

Type Description
ColumnSortMode

A ColumnSortMode enumeration value that specifies how column values are sorted and grouped.

GridControl allows its data to be sorted and grouped by either column values or the display text. Sorting and grouping by column values is suitable under most circumstances. Sorting and grouping by the displayed text can be useful when column data is formatted in a specific manner.

If the SortMode property is set to ColumnSortMode.Value, the column values are sorted and grouped by initial values.

If this property is set to ColumnSortMode.DisplayText, the column values are sorted and grouped by columns formatted values.

See Also