WPF DataGrid's CurrentItem does not trigger change notification after showing a child window - by Jacques Bourque

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 696155 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 10/21/2011 7:07:53 PM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

I have a WPF DataGrid on inside a window with it's CurrentItem bound to a property on the window.

When the application starts, the property gets updated when I change the current item in the grid without issue. But when I open a sub window (modal or non-modal), when I go back to the grid and change the current item, the binding does not update anymore.
Sign in to post a comment.
Posted by Microsoft on 3/9/2012 at 1:32 PM
No, the fix is not in beta. It will be in the final release. I don't know of a good workaround.
Posted by Jacques Bourque on 3/8/2012 at 8:33 PM
I tried with .net 4.5 BETA and the issue is still there. Was the fix suppose to be in the BETA?
Posted by Jacques Bourque on 1/24/2012 at 7:02 PM
And when should we expect the new release? Is there any possible workaround for this in the meantime?
Posted by Jacques Bourque on 11/23/2011 at 6:37 PM
Thank you very much, can't wait to have the new version. Meanwhile, is there any possible workarounds?
Posted by Microsoft on 11/10/2011 at 5:28 PM
When DataGrid loses focus (and in many other circumstances), it clears the CurrentItem property, which removes the data-binding. Instead it should set CurrentItem to null, via SetCurrentValue. This is fixed for the next release.
Posted by Macy [MSFT] on 10/27/2011 at 1:30 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Jacques Bourque on 10/26/2011 at 6:34 PM
The project has been added. Just make sure to have a breakpoint in the setter of the CurrentItem property of the MainWindow.xaml.cs file.

1. Run the project
2. Click on a row of the grid and notice that the breakpoint gets hit
3. Click on the "Test" button (a dialog will show)
4. Close the dialog
5. Click on another item of the grid and notice that the breakpoint will NOT get hit.

Thanks!
Posted by MS-Moderator10 [Feedback Moderator] on 10/24/2011 at 1:26 AM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by MS-Moderator10 on 10/23/2011 at 6:44 PM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly (http://support.microsoft.com/)