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

BaseContainerValidateEditorEventArgs.ErrorText Property

Gets or sets the error description.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public string ErrorText { get; set; }

Property Value

Type Description
String

A string value specifying the error description.

Remarks

The ErrorText property specifies the error hint text. The hint is displayed if the BaseContainerValidateEditorEventArgs.Valid property is set to false. Note that, in this case, the cell that failed validation displays an error icon. Pointing to that icon displays the error hint again.

Note: you can override the behavior described using the InvalidValueException event of a control you are using. In this case, the ErrorText property value specifies the initial value of that event’s ErrorText parameter.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ErrorText property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also