.NET Core 3.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IModelColumn.SortOrder Property

Specifies the sorting type for the current column.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v20.2.dll

Declaration

[DefaultValue(ColumnSortOrder.None)]
ColumnSortOrder SortOrder { get; set; }
<DefaultValue(ColumnSortOrder.None)>
Property SortOrder As ColumnSortOrder

Property Value

Type Description
ColumnSortOrder

A ColumnSortOrder enumeration value specifying the sorting type for the current column.

Remarks

Note that by default, if the IModelColumn.SortIndex property value does not equal -1, the Ascending sorting is applied. So, to disable sorting, you must set SortOrder to None and SortIndex to -1.

IMPORTANT

Sorting, specified by this property is directly applied to the data-aware control. To sort the underlying data source, use the IModelSorting node instead.

See Also