Skip to main content

GridColumn.SortIndex Property

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

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll


public int SortIndex { get; set; }

Property Value

Type Description

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


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