CollectionSourceBase.Reload() Method

Reloads the current Collection Source's CollectionSourceBase.Collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public virtual void Reload()
Public Overridable Sub Reload

Remarks

The Reload method reloads the Collection Source's collection. The method does not force reloading of objects contained in the collection. If the collection's objects were not changed, or a Server mode is active, objects are taken from the cache, instead of reloading them from the database. 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