Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CollectionSourceBase.CollectionChanged Event

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.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