Xceed DataGrid for WPF v7.2 Documentation
ResetItems Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridCollectionView Class : ResetItems Method
A list of items to refresh.
Ensures items are re-grouped, re-sorted, re-filtered, and their associated StatFunction recalculated.
Syntax
'Declaration
 
Public Sub ResetItems( _
   ByVal items As IList _
) 
'Usage
 
Dim instance As DataGridCollectionView
Dim items As IList
 
instance.ResetItems(items)
public void ResetItems( 
   IList items
)

Parameters

items
A list of items to refresh.
Remarks
When using a data source which does not signal that items' property values have changed (like ObservableCollection which will raise a CollectionChanged event only when adding/removing/replacing an item), and when items are being changed at the data source level, this method permits to signal the DataGridCollectionView it must revaluate the position of the specified items as far as grouping, sorting, and filtering are concerned.  It will also make sure any statistics depending upon these items are recalculated.
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataGridCollectionView Class
DataGridCollectionView Members