Back to Devexpress

XafApplication.CreateCustomCollectionSource Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-c5a54613.md

latest3.4 KB
Original Source

XafApplication.CreateCustomCollectionSource Event

Occurs when creating a Collection Source for a List View.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

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

Event Data

The CreateCustomCollectionSource event's data class is CreateCustomCollectionSourceEventArgs. The following properties provide information specific to this event:

PropertyDescription
CollectionSourceSpecifies a custom Collection Source to be used by a List View.
DataAccessModeSpecifies the mode used to access the Collection Source’s collection.
ListViewIDSpecifies the identifier of the List View for which a custom Collection Source will be created.
ModeSpecifies the mode of operation for the custom Collection Source.
ObjectSpaceSpecifies an Object Space to be used by the custom Collection Source.
ObjectTypeSpecifies 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

CreateCustomPropertyCollectionSource

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace