XafApplication.CreateCollectionSource(IObjectSpace, Type, String, CollectionSourceDataAccessMode, CollectionSourceMode) Method
Creates a Collection Source for a specific List View.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public CollectionSourceBase CreateCollectionSource(
IObjectSpace objectSpace,
Type objectType,
string listViewId,
CollectionSourceDataAccessMode dataAccessMode,
CollectionSourceMode mode
)
#Parameters
Name | Type | Description |
---|---|---|
object |
IObject |
An IObject |
object |
Type | The Type object that represents the type of the objects that will be retrieved to the created Collection Source. |
list |
String | A string value representing the target List View’s identifier. |
data |
Collection |
The Collection |
mode | Collection |
A Collection |
#Returns
Type | Description |
---|---|
Collection |
A Collection |