Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ExceptionMode Enum

Specifies how an exception should be handled.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public enum ExceptionMode

#Members

Name Description
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.

#Related API Members

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