Describe the bug 馃悶
I noticed that when I call Refresh on an item in SourceCache, it doesn't propagate to my WinForms-based UI (it uses BindingList) it's bound to. Upon further examination of the problem I found that while SourceCache itself seems to be fine, the BindingList doesn't receive any notifications. It seems the culprit is the BindingListAdaptor which just doesn't have any sort of Refresh handling and just does nothing when Refresh comes, despite BindingList being able to handle such changes (see ResetItem; although this is just my assumption, I am still investigating):
Step to reproduce
- Create a
SourceCache with some items.
- Insert a
Do with logging to see the changes emitted.
- Bind to a
BindingList.
- Subscribe to the binding list's change event with another logging check.
- Call
Refresh(item) on SourceCache.
Reproduction repository
https://github.com/Metadorius/DynamicData.BindingListRefreshRepro
Expected behavior
Both SourceCache and BindingList should reflect the change.
DynamicData Version
7.12.1
Additional information 鈩癸笍
Running on .NET Framework 4.8.
Describe the bug 馃悶
I noticed that when I call
Refreshon an item inSourceCache, it doesn't propagate to my WinForms-based UI (it usesBindingList) it's bound to. Upon further examination of the problem I found that whileSourceCacheitself seems to be fine, theBindingListdoesn't receive any notifications. It seems the culprit is theBindingListAdaptorwhich just doesn't have any sort ofRefreshhandling and just does nothing whenRefreshcomes, despite BindingList being able to handle such changes (seeResetItem; although this is just my assumption, I am still investigating):DynamicData/src/DynamicData/Binding/BindingListAdaptor.cs
Line 112 in ec02c3b
Step to reproduce
SourceCachewith some items.Dowith logging to see the changes emitted.BindingList.Refresh(item)on SourceCache.Reproduction repository
https://github.com/Metadorius/DynamicData.BindingListRefreshRepro
Expected behavior
Both SourceCache and BindingList should reflect the change.
DynamicData Version
7.12.1
Additional information 鈩癸笍
Running on .NET Framework 4.8.