Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Synchronization in DataGrid breaks

$
0
0

Hi,

I have two collections bound to two datagrids. IsSynchronizedWithCurrentItem is true and synchronization works.

Both collections expose classes implement overridden Equals- and GetHashcode-methods. These method suse the "Name"-property value of both classes.

Problem: whenever the user changes the name of one of both classes, the synchronization does not work anymore. Furthermore, within a grid, whenever the selected datagridrow changes, the datagrid row order also get's confused.

I was searching for a kind of "reset" to bind again after the property-change, but had no luck.

Any idea how to solve this issue (except changing implementation of equals & gethashcode methods)?

Regards!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>