Dashboard.DataSources Property
Gets the collection of dashboard data sources.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v19.1.Core.dll
Declaration
Property Value
Type | Description |
---|---|
DataSourceCollection | A collection of objects implementing the IDashboardDataSource interface. |
Remarks
The DataSources property provides access to the collection of the dashboard data sources. You can add the following types of data sources to the DataSources collection.
- DashboardSqlDataSource - an SQL data source.
- DashboardOlapDataSource - an OLAP data source.
- DashboardExcelDataSource - a data source used to extract data from Microsoft Excel workbooks or CSV files.
- DashboardEFDataSource - an Entity Framework data source.
- DashboardObjectDataSource - an object data source.
- DashboardExtractDataSource - an extract data source.
All data-aware dashboard items expose the DataDashboardItem.DataSource property that allows you to specify the required data source for the dashboard item. If you are using the DashboardSqlDataSource and DashboardEFDataSource, set the DataDashboardItem.DataMember property to specify a required data member in a dashboard data source. For instance, for a DashboardSqlDataSource data source, the data member is the name of the query (the SqlQuery.Name property).
When a data source is added or removed from the DataSources collection, the Dashboard.DataSourceCollectionChanged event is fired.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the DataSources property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.