CollectionSource(IObjectSpace, Type, CollectionSourceDataAccessMode, CollectionSourceMode) Constructor
Initializes a new instance of the CollectionSource.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public CollectionSource(
IObjectSpace objectSpace,
Type objectType,
CollectionSourceDataAccessMode dataAccessMode,
CollectionSourceMode mode
)
#Parameters
Name | Type | Description |
---|---|---|
object |
IObject |
An IObject |
object |
Type | A type of the objects that will be contained in the Collection Source’s Collection |
data |
Collection |
A Collection |
mode | Collection |
A Collection |
#Remarks
XAF automatically creates and manipulates a Collection Source when it creates a List View. However, you may need to instantiate a Collection Source manually if you create a custom List View.