Skip to main content
.NET 6.0+

XafApplication.CreateCustomCollectionSource Event

Occurs when creating a Collection Source for a List View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.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
CollectionSource Specifies a custom Collection Source to be used by a List View.
DataAccessMode Specifies the mode used to access the Collection Source’s collection.
ListViewID 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.
ObjectSpace Specifies an Object Space to be used by the custom Collection Source.
ObjectType 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.

See Also