CompareNodeValuesEventArgs.Node1 Property
Gets the node containing the first value involved in comparison.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public TreeListNode Node1 { get; }
#Property Value
Type | Description |
---|---|
Tree |
A Tree |
#Remarks
Values to compare are taken from the column against which data is about to be sorted. These values are transmitted as the CompareNodeValuesEventArgs.NodeValue1 and CompareNodeValuesEventArgs.NodeValue2 parameters.
The Tree List control enables you to implement more complex sorting algorithm. The nodes containing compared values are transmitted to the TreeList.CompareNodeValues
event as Node1 and CompareNodeValuesEventArgs.Node2 parameters. Thus you can perform sorting with respect to node properties or values of several fields.