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.v21.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 node 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