Skip to main content
A newer version of this page is available. .

CompareNodeValuesEventArgs.Column Property

Gets the column against whose values sorting is performed.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v18.2.dll

Declaration

public TreeListColumn Column { get; }

Property Value

Type Description
TreeListColumn

A TreeListColumn object representing the column against whose values data is being sorted.

Remarks

Use the Column property to identify the column whose values are to be sorted in order to rearrange nodes of the Tree List control. This is the column whose TreeListColumn.SortOrder property value has been changed to sort data within the control. Use the CompareNodeValuesEventArgs.SortOrder property to determine the newly assigned value of this property.

Identifying the column against which sorting is performed is useful since sorting algorithms can differ for various types of columns and their content. In most cases, you will find a need to change the sorting procedure for a small subset of columns in your control. (In general, however, you will find no need to use custom sorting at all.) Thus, when handling the TreeList.CustomColumnSort event, you will need to check whether custom sorting must be applied depending on the Column property value.

See Also