Skip to main content
All docs
V21.2

DataSourceManager.GetDataSourceAssignables<TDataSourceAssignable>(XtraReport, Boolean) Method

A static method that returns controls and parameters of the specified type that have data sources and are stored in a report.

Namespace: DevExpress.XtraReports

Assembly: DevExpress.XtraReports.v21.2.dll

Declaration

public static IEnumerable<TDataSourceAssignable> GetDataSourceAssignables<TDataSourceAssignable>(
    XtraReport report,
    bool includeSubReports = false
)
    where TDataSourceAssignable : class, IDataSourceAssignable

Parameters

Name Type Description
report XtraReport

The report from which to return controls or parameters.

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.

Type Parameters

Name Description
TDataSourceAssignable

Type of controls or parameters to return from the report.

Returns

Type Description
IEnumerable<TDataSourceAssignable>

Controls or parameters that are stored in the report.

See Also