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.v18.2.dll

Declaration

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

Remarks

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.

Tip

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

Note

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

Inheritance

Implements

DevExpress.XtraPrinting.Native.IObject
DevExpress.Data.IListAdapterAsync
DevExpress.Data.IListAdapter
DevExpress.Persistent.Base.ReportsV2.ISortingPropertyDescriptorProvider
DevExpress.Utils.Serializing.Helpers.IXtraSupportDeserializeCollectionItem
See Also