DataSourceManager.AddDataSources(XtraReport, IComponent[]) Method
Adds the specified data sources to a report.
Namespace: DevExpress.XtraReports
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
report | XtraReport | A report instance. |
dataSources | IComponent[] | A list of data sources. |
Example
The following code sample adds two JSON data sources to a report:
using DevExpress.DataAccess.Json;
using DevExpress.XtraReports;
//...
var report = new XtraReport1();
var jsonDataSource1 = new JsonDataSource { /* ... */ };
var jsonDataSource2 = new JsonDataSource { /* ... */ };
DataSourceManager.AddDataSources(report, jsonDataSource1, jsonDataSource2);
See Also