Skip to main content
.NET Framework 4.6.2+

CollectionSourceBase.Reload() Method

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