Skip to main content
.NET Framework 4.5.2+

CollectionSourceBase.CollectionChanged Event

Occurs after the Collection Source’s collection has been recreated.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public event EventHandler CollectionChanged

Event Data

The CollectionChanged event's data class is EventArgs.

Remarks

Handle this event to access a Collection Source’s collection in a View Controller. Subscribe to this event and perform your code in the event handler. Do not perform the collection-dependent code after the Controller has been activated. This is so, because while View Controllers are activating for a List View, the List View’s CollectionSourceBase.Collection property may return null.

This event is raised by the CollectionSourceBase.ResetCollection method, if the recreated collection differs from the previously existing one.

See Also