Dashboard.DataSources Property

Gets the collection of dashboard data sources.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v21.2.Core.dll

Declaration

public DataSourceCollection DataSources { get; }

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. See Supported Data Sources for information about what types of data sources you can add to the DataSources collection.

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.

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.

See Also