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

ValidateNodeEventArgs Class

Provides data for the TreeList.ValidateNode event.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public class ValidateNodeEventArgs :
    NodeEventArgs

#Remarks

The TreeList.ValidateNode event fires when attempting to move node focus. It enables you to specify whether the currently focused node’s data is valid, and so whether moving focus is permitted.

To determine whether the currently focused node’s data is valid, you will need to access the node’s cell values. Thus, the ValidateNodeEventArgs class enables you to identify the processed node using the inherited NodeEventArgs.Node property. This class introduces the ValidateNodeEventArgs.Valid and ValidateNodeEventArgs.ErrorText properties that specify if a node’s data is valid and define the text displayed within an error message box.

#Inheritance

Object
EventArgs
NodeEventArgs
ValidateNodeEventArgs
See Also