Back to Devexpress

CompareNodeValuesEventArgs.Node1 Property

windowsforms-devexpress-dot-xtratreelist-dot-comparenodevalueseventargs-dot-node1.md

latest2.4 KB
Original Source

CompareNodeValuesEventArgs.Node1 Property

Gets the node containing the first value involved in comparison.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public TreeListNode Node1 { get; }
vb
Public ReadOnly Property Node1 As TreeListNode

Property Value

TypeDescription
TreeListNode

A TreeListNode object representing the node containing the first value involved in comparison.

|

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.

See Also

Node2

NodeValue1

NodeValue2

CompareNodeValuesEventArgs Class

CompareNodeValuesEventArgs Members

DevExpress.XtraTreeList Namespace