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

TreeList.InvalidValueException Event

Enables you to handle exceptions raised as a result of assigning invalid values to cells.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

[DXCategory("Action")]
public event InvalidValueExceptionEventHandler InvalidValueException

Event Data

The InvalidValueException event's data class is InvalidValueExceptionEventArgs. The following properties provide information specific to this event:

Property Description
ErrorText Gets or sets the error description to be displayed in the message box/tooltip. Inherited from ExceptionEventArgs.
Exception Gets the exception that caused the event. Inherited from ExceptionEventArgs.
ExceptionMode Gets or sets the type of response to supplying invalid values. Inherited from ExceptionEventArgs.
Value Gets an invalid value that caused the exception.
WindowCaption Gets or sets the caption of the error message box. Inherited from ExceptionEventArgs.

Remarks

The InvalidValueException event fires immediately after an invalid value has been assigned to a cell. This event fires regardless of whether a value was typed by an end-user or assigned via code. Write a handler for this event to perform exception handling.

This event’s parameters allow you to determine the occurred exception, specify whether it should be raised and whether the previous value must be restored. You can also specify whether an error message box must be displayed and construct its message text and caption.

See Also