Back to Devexpress

ValidateNodeEventArgs.Valid Property

windowsforms-devexpress-dot-xtratreelist-dot-validatenodeeventargs.md

latest1.9 KB
Original Source

ValidateNodeEventArgs.Valid Property

Gets or sets whether the node’s validation succeeds.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public bool Valid { get; set; }
vb
Public Property Valid As Boolean

Property Value

TypeDescription
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

InvalidNodeException

ValidateNode

ValidateNodeEventArgs Class

ValidateNodeEventArgs Members

DevExpress.XtraTreeList Namespace