Back to Devexpress

PivotGridControl.OlapException Event

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-7a499a63.md

latest5.8 KB
Original Source

PivotGridControl.OlapException Event

OBSOLETE

The OlapException event is obsolete now. Use the QueryException event instead.

Raised when a query processing error occurs on a bound OLAP server, or when the connection to this server is lost.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
[Obsolete("The OlapException event is obsolete now. Use the QueryException event instead.")]
[Browsable(false)]
public event PivotOlapExceptionEventHandler OlapException
vb
<Obsolete("The OlapException event is obsolete now. Use the QueryException event instead.")>
<Browsable(False)>
Public Event OlapException As PivotOlapExceptionEventHandler

Event Data

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

PropertyDescription
ErrorPanelTextGets or sets a text from the error panel. Inherited from PivotQueryExceptionEventArgs.
ExceptionGets the exception that was thrown. Inherited from PivotQueryExceptionEventArgs.
HandledGets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.
IsDrillDownRequestedGets a value that indicates whether a query processing error occurs during a drill-down request. Inherited from PivotQueryExceptionEventArgs.
OriginalSourceGets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
ShowErrorPanelGets or sets whether to show the error panel. Inherited from PivotQueryExceptionEventArgs.
SourceGets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

The event data class exposes the following methods:

MethodDescription
InvokeEventHandler(Delegate, Object)When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation. Inherited from RoutedEventArgs.
OnSetSource(Object)When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. Inherited from RoutedEventArgs.

Remarks

Use the event parameter’s PivotQueryExceptionEventArgs.Exception property to determine which exception has been thrown.

To cancel the default exception handling actions, set the Handled property to true.

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace