Back to Devexpress

ExceptionMode Enum

windowsforms-devexpress-dot-xtraeditors-dot-controls-da36c6ea.md

latest2.1 KB
Original Source

ExceptionMode Enum

Specifies how an exception should be handled.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public enum ExceptionMode
vb
Public Enum ExceptionMode

Members

NameDescription
DisplayError

A control displays a tooltip or message box with an error description specified by the ExceptionEventArgs.ErrorText property. A tooltip is displayed for invalid cells. A message box is displayed for invalid rows (records).

| | ThrowException |

A control throws an exception specified by the ExceptionEventArgs.Exception property.

| | NoAction |

A control suppresses an error message box/tooltip and exceptions. Values remain unchanged.

| | Ignore |

Discards new data and reverts to an old value.

Note

In standalone editors, because of the .NET binding mechanism, the Ignore value doesn’t work correctly. In container controls, the Ignore value works as expected.

|

The following properties accept/return ExceptionMode values:

Remarks

The ExceptionMode type enumerates values for the ExceptionEventArgs.ExceptionMode property. This allows you to specify the manner in which an exception should be handled.

See Also

ExceptionMode

DevExpress.XtraEditors.Controls Namespace