Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / DataGridCollectionView Class / ResetItem Method
The item to refresh.


In This Topic
    ResetItem Method
    In This Topic
    Ensures an item is re-grouped, re-sorted, and re-filtered, and that its associated StatFunction is recalculated.
    Syntax
    'Declaration
     
    Public Sub ResetItem( _
       ByVal item As Object _
    ) 
    'Usage
     
    Dim instance As DataGridCollectionView
    Dim item As Object
     
    instance.ResetItem(item)
    public void ResetItem( 
       object item
    )

    Parameters

    item
    The item to refresh.
    Remarks
    When using a data source that does not signal that an item's property values have changed (such as ObservableCollection, which will raise a CollectionChanged event only when adding, removing, or 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 item as far as grouping, sorting, and filtering are concerned.  It will also make sure any statistics depending upon this item 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