Skip to main content
A newer version of this page is available. .

ValidateNodeEventArgs.Valid Property

Gets or sets whether the node’s validation succeeds.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.2.dll

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