GridColumn.SortIndex Property

Gets or sets the column's position among sorted columns. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

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

Declaration

[XtraSerializableProperty]
public int SortIndex { get; set; }
<XtraSerializableProperty>
Public Property SortIndex As Integer

Property Value

Type Description
Int32

An integer value specifying the zero-based column's index among sorted columns. -1 if data is not sorted by this column.

The GridControl allows data sorting by multiple columns if the GridControl.SortMode property is set to GridSortMode.Multiple. Set the GridColumn.SortOrder property for each column to be sorted and specify their SortIndex to set the sequence of applying sorting to these columns.

See Also