PivotGridControl.InvalidValueException Event
Enables you to provide a proper response to entering an invalid cell value.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
NuGet Package: DevExpress.Win.PivotGrid
#Declaration
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 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.