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.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Event Data
The CreateCustomPropertyCollectionSource event's data class is CreateCustomPropertyCollectionSourceEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
DataAccessMode | Specifies the mode used to access the Collection Source’s collection. |
ListViewID | Specifies the identifier of the nested List View for which a custom Collection Source will be created. |
MasterObject | Provides access to the object whose collection property the custom Collection Source will represent. |
MasterObjectType | Specifies the type of an object whose collection property the custom Collection Source will represent. |
MemberInfo | 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. |
ObjectSpace | Specifies an Object Space to be used by the custom Collection Source. |
PropertyCollectionSource | 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.