The requested page is not available for the requested platform. You are viewing the content for Default platform.

DataDashboardItem.SetDataSource(IDashboardDataSource, String) Method

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

Namespace: DevExpress.DashboardCommon

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

Declaration

public void SetDataSource(
    IDashboardDataSource newDataSource,
    string newDataMember
)
Public Sub SetDataSource(
    newDataSource As IDashboardDataSource,
    newDataMember As String
)

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