ValidateNodeEventArgs.ErrorText Property

Gets or sets the error description.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public string ErrorText { get; set; }

Property Value

Type Description

A string representing the error description.


You can use the ErrorText property to provide text explaining why validation failed. If the ValidateNodeEventArgs.Valid property gets set to false, this text will be displayed within a message box. Note that the text will be followed by the ‘Do you want to correct the value?’ string.

If handling the TreeList.InvalidNodeException event, you can modify the error message box’s text before it is displayed or prevent the message box from being displayed.

See Also