DashboardDesigner.ConnectionError Event

Allows overriding the default behavior when current connection parameters do not allow connecting to a data store.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v18.1.Win.dll

Declaration

public event DashboardConnectionErrorEventHandler ConnectionError
Public Event ConnectionError As DashboardConnectionErrorEventHandler

The event handler receives an argument of the DashboardConnectionErrorEventHandler type.

The ConnectionError event is fired when current connection parameters do not allow connecting to a data store (for instance, the database is inaccessible). You can handle the ConnectionError event and override the default behavior in this case.

To override the default behavior, do the following:

To cancel connecting to the data store, use the ConnectionErrorEventArgs.Cancel property.

To get the exception that caused the event, use the ConnectionErrorEventArgs.Exception property.