CollectionSourceBase.CollectionChanged Event

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public event EventHandler CollectionChanged
Public Event CollectionChanged As EventHandler

Event Data

The CollectionChanged event handler receives an argument of the EventArgs type.

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