XafApplication.CreatePropertyCollectionSource(IObjectSpace, Type, Object, IMemberInfo, String, Boolean, CollectionSourceMode) Method

Creates a Collection Source for a nested List View that displays a collection property.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Syntax

public PropertyCollectionSource CreatePropertyCollectionSource(
    IObjectSpace objectSpace,
    Type masterObjectType,
    object masterObject,
    IMemberInfo memberInfo,
    string listViewId,
    bool isServerMode,
    CollectionSourceMode mode
)

Parameters

Type Name Description
IObjectSpace objectSpace

An IObjectSpace object representing the Object Space used to retrieve the object for the created Collection Source.

Type masterObjectType

The type of the object whose collection property is about to be displayed.

Object masterObject

An object whose collection property is about to be displayed.

IMemberInfo memberInfo

An IMemberInfo object that defines the collection property to be displayed.

String listViewId

A string representing an identifier of the List View for which a Collection Source is created.

Boolean isServerMode

true, if all the data processing takes place on the database server side; false, if all the data processing takes place on the client side. This value is used to initialize the CollectionSourceBase.Mode property of the created Collection Source.

CollectionSourceMode mode

A CollectionSourceMode enumeration value specifying the Collection Source's mode of operation. This value is used to initialize the CollectionSourceBase.Mode property of the created Collection Source.

Returns

Type Description
PropertyCollectionSource

A PropertyCollectionSource object representing a Collection Source for a nested List View.