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.NodeValue1 Property

Gets 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 object NodeValue1 { get; }

#Property Value

Type Description
Object

An object representing the first value involved in comparison.

#Remarks

Custom sorting is performed by giving you the ability to compare values of the column being sorted. You can access two values to be compared via the NodeValue1 and CompareNodeValuesEventArgs.NodeValue2 properties. The result of comparing these two values must be specified using the CompareNodeValuesEventArgs.Result property.

You can implement more complex sorting by accessing nodes that contain compared values. Use the CompareNodeValuesEventArgs.Node1 and CompareNodeValuesEventArgs.Node2 properties for this purpose.

See Also