Skip to main content
.NET Framework 4.6.2+

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.Reload() Method

In This Article

Reloads the current Collection Source’s CollectionSourceBase.Collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public virtual void Reload()

#Remarks

The Reload method does not reload objects in a collection. Do not use this method to refresh the data displayed in a List View. Instead, call the View.Refresh method.

Execution of this method raises two events - CollectionSourceBase.CollectionReloading and CollectionSourceBase.CollectionReloaded. The CollectionReloading event occurs before the collection has been reloaded. The CollectionReloaded event occurs after the collection has been reloaded. Handle these events to be notified when a Collection Source’s collection is reloaded from the database. Additionally, you may need to handle the CollectionSourceBase.CollectionChanging and CollectionSourceBase.CollectionChanged events. These events occur when the collection is recreated.

When deriving from the CollectionSourceBase class, override this method to reload the Collection Source’s collection.

See Also