The event handler receives an argument of type InvalidValueExceptionEventArgs containing data related to this event.
The following
InvalidValueExceptionEventArgs properties provide information specific to this event.
Property |
Description |
ErrorText |
Gets or sets the error description to be displayed in the message box/tooltip.
|
Exception |
Gets the exception that caused the event.
|
ExceptionMode |
Gets or sets the type of response to supplying invalid values.
|
Value |
Gets an invalid value that caused the exception.
|
WindowCaption |
Gets or sets the caption of the error message box.
|
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.