Dashboard.DataSources Property

Gets the collection of dashboard data sources.

Namespace: DevExpress.DashboardCommon

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


public DataSourceCollection DataSources { get; }
Public ReadOnly Property DataSources As DataSourceCollection

Property Value

Type Description

A collection of objects implementing the IDashboardDataSource interface.


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.

See Also