Skip to main content

DataDashboardItem.SetDataSource(IDashboardDataSource, String) Method

Specifies the data source and data member for the current dashboard item.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v24.1.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

public void SetDataSource(
    IDashboardDataSource newDataSource,
    string newDataMember
)

Parameters

Name Type Description
newDataSource IDashboardDataSource

An object implementing the IDashboardDataSource interface that specifies a data source to which the dashboard item is bound.

newDataMember String

A String value that specifies a data member in a dashboard data source.

Remarks

All data-aware dashboard items expose the DataSource property that specifies a data source to which this item is actually bound. The DataDashboardItem.DataMember property specifies the required data member in this data source.

To access the collection of existing dashboard data sources, use the Dashboard.DataSources property.

See Also