PivotGridControl.InvalidValueException Event

Enables you to provide a proper response to entering an invalid cell value.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v20.1.dll

Declaration

public event InvalidValueExceptionEventHandler InvalidValueException
Public Event InvalidValueException As InvalidValueExceptionEventHandler

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 allows you to handle exceptions raised as the result of entering invalid cell values. It occurs when using a wrong value type or when an exception is raised during validation. The InvalidValueException event fires regardless of whether the value was entered by an end-user or assigned in code. The event parameter provides properties that allow you to obtain an exception, specify whether this exception should be raised, etc.

See Also