Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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
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