wpf-devexpress-dot-xpf-dot-grid-dot-invalidrowexceptioneventargs.md
Gets or sets the error description.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public string ErrorText { get; set; }
Public Property ErrorText As String
| Type | Description |
|---|---|
| String |
A String value that specifies the error description.
|
If the InvalidRowExceptionEventArgs.ExceptionMode property is set to ExceptionMode.DisplayError, the ErrorText property specifies the text displayed within an error message box. The message box’s caption is specified by the InvalidRowExceptionEventArgs.WindowCaption property.
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.
if(e.RowHandle == GridControl.NewItemRowHandle) {
e.ErrorText = "Please enter the Product Name.";
e.WindowCaption = "Input Error";
If e.RowHandle = DataControlBase.NewItemRowHandle Then
e.ErrorText = "Please enter the Product Name."
e.WindowCaption = "Input Error"
See Also
InvalidRowExceptionEventArgs Class