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

TreeListInvalidNodeExceptionEventArgs.ExceptionMode Property

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

Namespace: DevExpress.Xpf.Grid.TreeList

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#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 an error message box with text specified by the ErrorText property. Use the WindowCaption property to specify the message box’s caption.

ThrowException

Throws an exception. Use the Exception property to get this exception.

NoAction

Displays an error icon and does not allow users to focus other rows until values are corrected.

Ignore

Ignores an exception and raises RowCanceled.

#Remarks

Use the ExceptionMode property to specify the action performed when a node fails validation. You can display a message box with an error description, suppress an action, throw an exception, or ignore the validation result.

See Also