Skip to main content

InvalidRowExceptionEventArgs.ExceptionMode Property

Gets or sets a value that specifies how an exception should be handled.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public ExceptionMode ExceptionMode { get; set; }

Property Value

Type Description
ExceptionMode

An ExceptionMode enumeration value that specifies how an exception should be handled.

Available values:

Name Description
DisplayError

Displays a message box, with an error description specified by the InvalidRowExceptionEventArgs.ErrorText property. The message box’s caption can be specified using the InvalidRowExceptionEventArgs.WindowCaption property.

ThrowException

Throws an exception specified by the InvalidRowExceptionEventArgs.Exception property.

NoAction

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.

See Also