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

ValidateRowEventArgs.ErrorText Property

Gets or sets the error description.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

public string ErrorText { get; set; }

Property Value

Type Description
String

A string representing the error description.

Remarks

You can use the ErrorText property to provide text explaining why validation failed. If setting the ValidateRowEventArgs.Valid property to false, the 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 ColumnView.InvalidRowException event, you can modify the error message box’s text before displaying it. Note also, that this event can prevent the display of the message box.

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