Skip to main content

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.2.dll

Declaration

[XtraSerializableProperty]
public int SortIndex { get; set; }

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.

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

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