TreeListDataColumn.SortOrder Property

Gets or sets the column's sort order.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v20.2.dll


public virtual ColumnSortOrder SortOrder { get; set; }

Property Value

Type Default Description


A ColumnSortOrder enumeration value that specifies the column's sort order.

Available values:

Name Description

No sorting is applied to a column.


Sorts the column in ascending order.


Sorts the columns in descending order.


Read the SortOrder property's value to determine which sort order is currently applied to the column. Assign a value to this property to sort data by the column's values.

Any previous sorting is not cleared when changing the SortOrder property's value. The new sort order applies an additional sorting condition to the one previously applied. The newly sorted column is added to the collection of sorted columns. Its index within the collection can be obtained using the TreeListDataColumn.SortIndex property.

To learn more, see Sorting.

See Also