Skip to main content
A newer version of this page is available. .
All docs
V21.2

DataSourceManager.GetDataSourceAssignablesByDataSource(XtraReport, Object, Boolean) Method

A static method that returns controls and parameters with the specified data source that are stored in a report.

Namespace: DevExpress.XtraReports

Assembly: DevExpress.XtraReports.v21.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public static IEnumerable<IDataSourceAssignable> GetDataSourceAssignablesByDataSource(
    XtraReport report,
    object dataSource,
    bool includeSubReports = false
)

Parameters

Name Type Description
report XtraReport

The report from which to return controls or parameters.

dataSource Object

A data source. A control or parameter is returned if it has this data source.

Optional Parameters

Name Type Default Description
includeSubReports Boolean False

A flag that specifies whether to include controls or parameters from referenced reports in the returned values.

Returns

Type Description
IEnumerable<IDataSourceAssignable>

Controls or parameters that have the specified data source in the report.

See Also