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