XafApplication.CreateCustomCollectionSource Event

Occurs when creating a Collection Source for a List View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Declaration

public event EventHandler<CreateCustomCollectionSourceEventArgs> CreateCustomCollectionSource
Public Event CreateCustomCollectionSource As EventHandler(Of CreateCustomCollectionSourceEventArgs)

The event handler receives an argument of the CreateCustomCollectionSourceEventArgs type. The CreateCustomCollectionSourceEventArgs properties provide information specific to this event.

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