Skip to main content

VerticalGridRowState.SortIndex Property

Gets or sets the row’s position among sorted rows.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int SortIndex { get; set; }

Property Value

Type Description
Int32

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

Remarks

The VerticalGrid allows data sorting by multiple rows. Once a row is sorted, it is automatically added to the collection of sorted rows. If no rows were previously sorted, the row becomes the only element in the collection and gets the 0 sort index. If sorting by more than one row, the newly sorted row is appended to the collection and gets an index of 1, etc.

See Also