Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IModelColumn.SortOrder Property

Specifies the sorting type for the current column.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[DefaultValue(ColumnSortOrder.None)]
ColumnSortOrder SortOrder { get; set; }

#Property Value

Type Default Description
ColumnSortOrder None

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

Available values:

Name Description
None

No sorting is applied to a column.

Ascending

Sorts the column in ascending order.

Descending

Sorts the columns in descending order.

#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