Skip to main content
.NET Framework 4.5.2+

ViewDataSource Class

The data source component that retrieves a list of data records (a data view) via the IObjectSpace without loading complete business classes. Values in each data record can be obtained from specific business class properties directly, or be evaluated by the database server using complex expressions.

Namespace: DevExpress.Persistent.Base.ReportsV2

Assembly: DevExpress.Persistent.Base.v23.1.dll


[ToolboxTabName("DX.23.1: XAF Data Sources for Reports")]
public class ViewDataSource :


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 ViewDataSource uses the IObjectSpace.CreateDataView method to load data.

You should explicitly specify the data fields to be loaded via the ViewDataSource.Properties property when using ViewDataSource. If you always want to load objects in their entirety, use the CollectionDataSource component instead.


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


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

See Also