DataSourceManager.ReplaceDataSource(XtraReport, Object, Object, Boolean) Method
A static method that replaces the specified data source in a report with a new data source.
Namespace: DevExpress.XtraReports
Assembly: DevExpress.XtraReports.v21.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
public static void ReplaceDataSource(
XtraReport report,
object oldDataSource,
object newDataSource,
bool includeSubReports = false
)
Parameters
Name | Type | Description |
---|---|---|
report | XtraReport | The report in which to replace the data source. |
oldDataSource | Object | The data source to replace. |
newDataSource | Object | The data source that should replace the previous data source. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
includeSubReports | Boolean | False | A flag that specifies whether to replace the specified data source in the report’s subreports. |
See Also