The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IModelColumn.SortIndex Property

Specifies the sequence of column sorting.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

[DefaultValue(-1)]
int SortIndex { get; set; }
<DefaultValue(-1)>
Property SortIndex As Integer
[DefaultValue(-1)]
int SortIndex { get; set; }
<DefaultValue(-1)>
Property SortIndex As Integer
[DefaultValue(-1)]
int SortIndex { get; set; }
<DefaultValue(-1)>
Property SortIndex As Integer

Property Value

Type Default Description
Int32

-1

An integer value specifying the sequence of column sorting.

Property Value

Type Default Description
Int32

-1

An integer value specifying the sequence of column sorting.

Property Value

Type Default Description
Int32

-1

An integer value specifying the sequence of column sorting.

Remarks

List View records can be sorted by multiple columns. The SortIndex value is zero-based. It means that initially, List View records are sorted by the column with the zero SortIndex value, second - by the column with SortIndex set to 1, etc. The -1 value cancels data sorting by this column. When it is required to sort a List View by the single column, this column's SortIndex should be zero. Note that by default, if the SortIndex property value does not equal -1, the Ascending sorting is applied (IModelColumn.SortOrder is set to ColumnSortOrder.Ascending). So, to disable sorting, you must set SortIndex to -1 and SortOrder to None.

See Also