InvalidRowExceptionEventArgs.ExceptionMode Property
Gets or sets a value that specifies how an exception should be handled.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public ExceptionMode ExceptionMode { get; set; }
#Property Value
Type | Description |
---|---|
Exception |
An Exception |
Available values:
Name | Description |
---|---|
Display |
Displays a message box, with an error description specified by the Invalid |
Throw |
Throws an exception specified by the Invalid |
No |
Displays an error icon and allows an end-user to correct or reset an invalid value. |
Ignore | An exception is ignored. |
#Remarks
Use the ExceptionMode property to specify the action performed when a row has failed validation. You can describe the error and display it in a message box, suppress any action, throw an exception or discard all the changes made.