.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

CollectionDataSource Class

The data source component that loads a collection of business objects via the IObjectSpace.

Namespace: DevExpress.Persistent.Base.ReportsV2

Assembly: DevExpress.Persistent.Base.v20.2.dll


[ToolboxTabName("DX.20.2: XAF Data Sources for Reports")]
public class CollectionDataSource :
<ToolboxTabName("DX.20.2: XAF Data Sources for Reports")>
Public Class CollectionDataSource
    Inherits DataSourceBase
    Implements ISortingPropertyDescriptorProvider,


Use this report data source to create an XtraReport compatible with the Reports V2 Module. An example is provided in the Create Predefined Static Reports topic. The CollectionDataSource uses the IObjectSpace.CreateCollection method to load data.

Use CollectionDataSource when you do not need to display a large amount of data, because this component loads objects in their entirety, including fields that are not displayed in the report. If you experience performance issues, use ViewDataSource instead, and explicitly specify the required fields via the ViewDataSource.Properties collection.


You can use the ViewDataSource component instead of CollectionDataSource. The difference between these components is described in the Data Sources for Reports V2 topic.


This component is available in the DX.20.2: XAF Data Sources for Reports group of the Visual Studio Toolbox.


See Also