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

CollectionSourceBase.CollectionChanged Event

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll

Declaration

public event EventHandler CollectionChanged
Public Event CollectionChanged As EventHandler

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