The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

CollectionSourceBase.ResetCollection(Boolean) Method

Recreates a Collection Source's CollectionSourceBase.Collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public void ResetCollection(
    bool updateObjectsInCriteria = false
)
Public Sub ResetCollection(
    updateObjectsInCriteria As Boolean = False
)
public void ResetCollection(
    bool updateObjectsInCriteria = false
)
Public Sub ResetCollection(
    updateObjectsInCriteria As Boolean = False
)
public void ResetCollection(
    bool updateObjectsInCriteria = false
)
Public Sub ResetCollection(
    updateObjectsInCriteria As Boolean = False
)

Parameters

Name Type Description
updateObjectsInCriteria Boolean

true, if criteria contain a reference to an object that should be reloaded; otherwise - false.

Parameters

Name Type Description
updateObjectsInCriteria Boolean

true, if criteria contain a reference to an object that should be reloaded; otherwise - false.

Parameters

Name Type Description
updateObjectsInCriteria Boolean

true, if criteria contain a reference to an object that should be reloaded; otherwise - false.

Remarks

This method clears the Collection Source's collection, disposes of the resources allocated by the collection and recreates it. The ResetCollection method raises two events - CollectionSourceBase.CollectionChanging and CollectionSourceBase.CollectionChanged. Handle them to be notified when a collection is recreated.

Generally you do not need to call this method, it is called automatically by XAF in certain situations. For instance, when a Detail View contains a nested List View and the Detail View's ViewItem.CurrentObject changes, XAF calls this method to recreate the nested List View's Collection Source's collection.

See Also