TreeListDataColumn.SortOrder Property

Gets or sets the column's sort order.

Namespace: DevExpress.Web.ASPxTreeList

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

Declaration

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

Property Value

Type Default Description
ColumnSortOrder

None

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

Remarks

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