Back to Devexpress

ViewDataSource Class

expressappframework-devexpress-dot-persistent-dot-base-dot-reportsv2-b5208e31.md

latest3.3 KB
Original Source

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

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
public class ViewDataSource :
    DataSourceBase,
    ISortingPropertyDescriptorProvider,
    ITypedList,
    IXtraSupportDeserializeCollectionItem
vb
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.25.2: XAF Data Sources for Reports group of the Visual Studio Toolbox.

Implements

ISupportSorting

Inheritance

Object MarshalByRefObject Component DataSourceBase ViewDataSource

See Also

ViewDataSource Members

DevExpress.Persistent.Base.ReportsV2 Namespace