It seems that the built-in behavior of the datagrid is to deselect the selected item when the datagrid disconnected - just checked it myself.
But try the following:
Create a simplified ListView, add some data, select an item, click the button to disable the ListView. If the selected item is canceled, then this behavior will be performed in WPF. I think you can not help it. Also, that you donβt turn off your controls ...
If the selected item is not canceled, you may open an error in Connect. It may take several months to get an answer, and the correction may appear in a couple of years ... If this expectation is not an option, also post an error in the WPF toolkit (wpf.codeplex.com). Toolkit may be updated earlier.
Marko source share