Back to Devexpress

DashboardControl.AsyncExcelDataSourceBeforeFill Event

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-873b181c.md

latest3.4 KB
Original Source

DashboardControl.AsyncExcelDataSourceBeforeFill Event

Allows you to change options used to extract data from Microsoft Excel workbooks (XLS, XLSX or XLSM files) or CSV files asynchronously.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Dashboard.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public event ExcelDataSourceBeforeFillEventHandler AsyncExcelDataSourceBeforeFill
vb
Public Event AsyncExcelDataSourceBeforeFill As ExcelDataSourceBeforeFillEventHandler

Event Data

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

PropertyDescription
DataSourceComponentNameGets the component name of the Excel data source for which the event was raised.
DataSourceConnectionName
DataSourceNameGets the name of the Excel data source for which the event was raised.
FileNameGets or sets a path to the Microsoft Excel workbook or CSV file.
SourceOptionsGets or sets options used to extract data from Microsoft Excel workbooks (XLS, XLSX or XLSM files) or CSV files.
StreamGets or sets a stream that contains a Microsoft Excel workbook or CSV file.
StreamDocumentFormatGets or sets the format of the document contained in the ExcelDataSourceBeforeFillWpfEventArgs.Stream.

Remarks

The AsyncExcelDataSourceBeforeFill event is raised for dashboards supplied with data using DashboardExcelDataSource and allows you to change settings related to loading the Microsoft Excel workbook (XLS, XLSX or XLSM files) or a CSV file. For instance, you can specify a new file path (ExcelDataSourceBeforeFillEventArgs.FileName) or change options used to extract data (ExcelDataSourceBeforeFillEventArgs.SourceOptions).

See Also

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace