Back to Devexpress

XafApplication.CreateCustomPropertyCollectionSource Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-0cfda181.md

latest4.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler<CreateCustomPropertyCollectionSourceEventArgs> CreateCustomPropertyCollectionSource
vb
Public Event CreateCustomPropertyCollectionSource As EventHandler(Of CreateCustomPropertyCollectionSourceEventArgs)

Event Data

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

PropertyDescription
DataAccessModeSpecifies the mode used to access the Collection Source’s collection.
ListViewIDSpecifies the identifier of the nested List View for which a custom Collection Source will be created.
MasterObjectProvides access to the object whose collection property the custom Collection Source will represent.
MasterObjectTypeSpecifies the type of an object whose collection property the custom Collection Source will represent.
MemberInfoSupplies metadata information on the collection property that the custom Collection Source will represent.
ModeSpecifies the mode of operation for the custom Collection Source.
ObjectSpaceSpecifies an Object Space to be used by the custom Collection Source.
PropertyCollectionSourceSpecifies 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.

See Also

CreateCollectionSource

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace