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

IDashboardDataSource.Data Property

Gets or sets the data object containing data source data.

Namespace: DevExpress.DashboardCommon

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

Declaration

[Browsable(false)]
object Data { get; set; }

Property Value

Type Description
Object

An object containing data for the data source.

Remarks

The following table describes how this property is implemented in IDashboardDataSource descendants.

Class Description
DashboardObjectDataSource If you assign a data object to the DashboardObjectDataSource.DataSource property, the IDashboardDataSource.Data property returns that object.
ObjectDataSource If you bind a Dashboard control to the ObjectDataSource and handle the control’s DataLoading event to assign data object to the e.Data property, the IDashboardDataSource.Data property returns the assigned data object. That is, if the data is a generic list of objects, the IDashboardDataSource.Data property returns the same list.
DashboardExcelDataSource, DashboardEFDataSource, DashboardSqlDataSource The IDashboardDataSource.Data property is read-only and returns a reference to the corresponding data source type.
DashboardExtractDataSource, DashboardOlapDataSource The IDashboardDataSource.Data property is read-only and returns null.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Data 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