Skip to main content
A newer version of this page is available. .

InvalidRowExceptionEventArgs.ExceptionMode Property

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExceptionMode 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.

See Also