XafApplication.CreateCustomCollectionSource Event

Occurs when creating a Collection Source for a List View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

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

Event Data

The CreateCustomCollectionSource event handler receives an argument of the CreateCustomCollectionSourceEventArgs type.

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