TreeList.InvalidValueException Event
Enables you to handle exceptions raised as a result of assigning invalid values to cells.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#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 |
---|---|
Error |
Gets or sets the error description to be displayed in the message box/tooltip.
Inherited from Exception |
Exception |
Gets the exception that caused the event.
Inherited from Exception |
Exception |
Gets or sets the type of response to supplying invalid values.
Inherited from Exception |
Value | Gets an invalid value that caused the exception. |
Window |
Gets or sets the caption of the error message box.
Inherited from Exception |
#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.