Skip to main content

TreeListColumn.SortMode Property

Gets or sets how the column’s data is sorted when sorting is applied.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v22.2.dll

NuGet Package: DevExpress.Win.TreeList


public ColumnSortMode SortMode { get; set; }

Property Value

Type Default Description
ColumnSortMode Default

A ColumnSortMode value specifying how the column’s data is sorted in sort mode.

Available values:

Name Description

Switches between DisplayText and Value modes based on the column editor’s type.


Sorts the column’s data by the column’s edit values (these are synchronized with the bound data source’s values).


Sorts the column’s data by the column’s display text (the strings displayed within the column’s cells).


Applies sort options specified in the CustomColumnSort event handler.

In data grids, this mode also applies group options from the CustomColumnGroup event handler.


The SortMode property determines the algorithm used to sort the column’s data (by display text, edit value or using a custom sorting algorithm). To provide custom sorting, set the SortMode property to ColumnSortMode.Custom and handle the TreeList.CustomColumnSort event.

See Also