XafApplication.CreateCustomPropertyCollectionSource Event
Occurs when creating a Collection Source for a nested List View that displays a collection property.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public event EventHandler<CreateCustomPropertyCollectionSourceEventArgs> CreateCustomPropertyCollectionSource
#Event Data
The CreateCustomPropertyCollectionSource event's data class is CreateCustomPropertyCollectionSourceEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Data |
Specifies the mode used to access the Collection Source’s collection. |
List |
Specifies the identifier of the nested List View for which a custom Collection Source will be created. |
Master |
Provides access to the object whose collection property the custom Collection Source will represent. |
Master |
Specifies the type of an object whose collection property the custom Collection Source will represent. |
Member |
Supplies metadata information on the collection property that the custom Collection Source will represent. |
Mode | Specifies the mode of operation for the custom Collection Source. |
Object |
Specifies an Object Space to be used by the custom Collection Source. |
Property |
Specifies a custom Collection Source to be used by a nested List View. |
#Remarks
This event is raised as a result of calling the XafApplication.CreatePropertyCollectionSource method. Handle this event to create a descendant of the PropertyCollectionSource 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 PropertyCollectionSource property.
To create a custom Collection Source for a root List View, handle the XafApplication.CreateCustomCollectionSource event.