Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
XamDataGrid ActiveDataItem changing on window focus
posted

I have an XamDataGrid with the ActiveDataItem two-way bound to a view model. When I change the ActiveDataItem in the view model, it changes in the view just find.

If I manually select a row, the application looses focus, the ActiveDataItem is updated in the view model, the row selects just fine and I can see the newly highlighted row. However, when I return focus back to the application the ActiveDataItem switches back to the previous DataItem (without me actually clicking that row).

How do I prevent this behavoir?