dashboard-devexpress-dot-dashboardcommon-dot-dataloadingeventargs.md
Gets or sets data for the current data source.
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public object Data { get; set; }
Public Property Data As Object
| Type | Description |
|---|---|
| Object |
Data for the current data source.
|
Use the Data property to supply data for the current data source. Note that an object assigned to the Data property should implement the IEnumerable or IListSource interface. Otherwise, the data source cannot read data.
To identify the data source for which the event is raised, use the DataId property.
The following code snippets (auto-collected from DevExpress Examples) contain references 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.
}
e.Data = dt;
}
if (!dashboardDesigner1.AsyncMode)
e.Data = myData;
}
winforms-dashboard-custom-items/CS/TutorialsCustomItems/Form1.cs#L23
if (e.DataSourceComponentName == "dsExport")
e.Data = CustomItemDataGenerator.GetExportData();
else if (e.DataSourceComponentName == "dsContinent")
DashboardDifferentUserDataAspNetCore/CS/Code/MultiTenantDashboardConfigurator.cs#L43
if (userName == "Admin") {
e.Data = SalesData.GetSalesData();
} else if (userName == "User") {
DashboardDifferentUserDataMVC/CS/MVCDashboard/App_Start/DashboardConfig.cs#L37
if (userName == "Admin") {
e.Data = SalesData.GetSalesData();
}
Next i
e.Data = dt
Else
If Not dashboardDesigner1.AsyncMode Then
e.Data = myData
End If
winforms-dashboard-custom-items/VB/TutorialsCustomItems/Form1.vb#L19
If e.DataSourceComponentName = "dsExport" Then
e.Data = CustomItemDataGenerator.GetExportData()
ElseIf e.DataSourceComponentName = "dsContinent" Then
Next i
e.Data = dt
Else
If ev.DataSourceName = "Data Source 1" Then
ev.Data = Data.CreateData()
End If
See Also