ValidateNodeEventArgs.Valid Property

Gets or sets whether the node’s validation succeeds.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public bool Valid { get; set; }

Property Value

Type Description

true to accept node cell values; otherwise, false.


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