XafApplication.CreateCollectionSource(IObjectSpace, Type, String, Boolean, 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,
bool isServerMode,
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. |
is |
Boolean | true, to enable the Server Mode; otherwise, false. When this value is set to true, the Collection |
mode | Collection |
A Collection |
#Returns
Type | Description |
---|---|
Collection |
A Collection |