Skip to main content
All docs

DataSourceManager.AddDataSources(XtraReport, IComponent[]) Method

Adds the specified data sources to a report.

Namespace: DevExpress.XtraReports

Assembly: DevExpress.XtraReports.v23.1.dll

NuGet Package: DevExpress.Reporting.Core


public static void AddDataSources(
    XtraReport report,
    params IComponent[] dataSources


Name Type Description
report XtraReport

A report instance.

dataSources IComponent[]

A list of data sources.


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