Skip to main content

GridColumn.SortIndex Property

Gets or sets the column’s position among sorted columns.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

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

Property Value

Type Description
Int32

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

Remarks

The grid allows data sorting by multiple columns if the DataGridView.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 sorting sequence.

See Also