Skip to main content
A newer version of this page is available. .

Dashboard.DataSources Property

Gets the collection of dashboard data sources.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v19.1.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. You can add the following types of data sources 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