SfDataGrid does not honor the Reset action of INotifyCollectionChanged

I am using SfGridView via 

<PackageReference Include="Syncfusion.Grid.WinUI" Version="20.2.0.36" />

I was initially using ObservableCollection, but I could not clear the collection and the grid be updated.  I then created a custom INotifyCollectionChanged implementation so I could debug the grid's reaction to the events.  When I send the Reset event, there is no attempt from the grid to read any properties of the collection and the visual state of the grid does not change.


2 Replies

PB Payton Byrd July 4, 2022 02:37 AM UTC

I can reproduce the same result for SfTreeGrid.



DM Dhanasekar Mohanraj Syncfusion Team July 5, 2022 03:38 PM UTC

Hi Payton Byrd,

We regret to let you know that the provided details are not enough to reproduce the reported issue. We need some information related to the reported issue. Can you please share us below things?   

  • Details about the code snippet related to XAML and Code behind customization of SfDataGrid

  • If possible, kindly modify the attached sample based on your scenario

  • Details about your custom logics related to INotifyCollectionChanged

After you give us the information we've requested above, we'll check and update the additional information for the SfDataGrid and SfTreeGrid.

Regards,
Dhanasekar M.


Attachment: SfDataGridDemo_eac745b4.zip

Loader.
Up arrow icon