XafApplication.CreateCustomCollectionSource Event
Occurs when creating a Collection Source for a List View.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public event EventHandler<CreateCustomCollectionSourceEventArgs> CreateCustomCollectionSource
#Event Data
The CreateCustomCollectionSource event's data class is CreateCustomCollectionSourceEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Collection |
Specifies a custom Collection Source to be used by a List View. |
Data |
Specifies the mode used to access the Collection Source’s collection. |
List |
Specifies the identifier of the List View for which a custom Collection Source will be created. |
Mode | Specifies the mode of operation for the custom Collection Source. |
Object |
Specifies an Object Space to be used by the custom Collection Source. |
Object |
Specifies the type of objects that will be retrieved from the database into the custom Collection Source. |
#Remarks
This event is raised as a result of calling the XafApplication.CreateCollectionSource method. Handle this event to create a descendant of the CollectionSourceBase class, if you need to create a custom behavior of a List View’s Collection Source. Assign the custom Collection Source to the handler’s CollectionSource property.
To create a custom Collection Source for a nested List View, handle the XafApplication.CreateCustomPropertyCollectionSource event.