Back to Devexpress

BaseContainerValidateEditorEventArgs.ErrorText Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-basecontainervalidateeditoreventargs.md

latest1.9 KB
Original Source

BaseContainerValidateEditorEventArgs.ErrorText Property

Gets or sets the error description.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public string ErrorText { get; set; }
vb
Public Property ErrorText As String

Property Value

TypeDescription
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.

See Also

BaseContainerValidateEditorEventArgs Class

BaseContainerValidateEditorEventArgs Members

DevExpress.XtraEditors.Controls Namespace