.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

IModelColumn.SortOrder Property

Specifies the sorting type for the current column.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v21.2.dll


ColumnSortOrder SortOrder { get; set; }

Property Value

Type Default Description


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

Available values:

Name Description

No sorting is applied to a column.


Sorts the column in ascending order.


Sorts the columns in descending order.


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.


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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SortOrder property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also