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.v20.2.dll
Declaration
public static void ReplaceDataSource(
XtraReport report,
object oldDataSource,
object newDataSource,
bool includeSubReports = false
)
Public Shared Sub ReplaceDataSource(
report As XtraReport,
oldDataSource As Object,
newDataSource As Object,
includeSubReports As Boolean = 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
Feedback