.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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

Declaration

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

Event Data

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

Property Description
DataAccessMode Specifies the mode used to access the Collection Source's collection.
ListViewID Specifies the identifier of the nested List View for which a custom Collection Source will be created.
MasterObject Provides access to the object whose collection property the custom Collection Source will represent.
MasterObjectType Specifies the type of an object whose collection property the custom Collection Source will represent.
MemberInfo Supplies metadata information on the collection property that the custom Collection Source will represent.
Mode Specifies the mode of operation for the custom Collection Source.
ObjectSpace Specifies an Object Space to be used by the custom Collection Source.
PropertyCollectionSource Specifies 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