GridControl.InvalidRowException Event
Occurs when a row fails validation or cannot be saved to a data source.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public event InvalidRowExceptionEventHandler InvalidRowException
#Event Data
The InvalidRowException event's data class is InvalidRowExceptionEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Error |
Gets or sets the error description. |
Exception |
Gets the exception that raised the Grid |
Exception |
Gets or sets a value that specifies how an exception should be handled. |
Row |
Gets the processed row.
Inherited from Row |
Row |
Gets the processed row’s handle.
Inherited from Row |
Source |
Gets the Grid |
Window |
Gets or sets the error window’s caption. |
#Remarks
Use the GridControl.ValidateRow event to validate entered values. After this event indicates errors, the InvalidRowException event occurs and allows you to specify how to display validation errors.
Use the InvalidRowExceptionEventArgs.ExceptionMode property to specify which action to perform when a user enters an invalid value. You can display a message box with an error description, throw an exception, display an error icon, or ignore this exception.
Refer to the following help topic for more information: Row Validation.