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

Gets or sets whether the node’s validation succeeds.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public bool Valid { get; set; }

#Property Value

Type Description
Boolean

true to accept node cell values; otherwise, false.

#Remarks

If the node contains values that do not meet your criteria, set the ValidateNodeEventArgs.Valid property to false, the Tree List will then display an error message box. This message box enables end-users to keep focus within the node so that its values can be corrected.

Note that setting the ValidateNodeEventArgs.Valid property to false raises the TreeList.InvalidNodeException event. This event can be handled to override the behavior described above.

See Also