3
Vote

Right clicking on data grid row header changes selection

description

If multiple data grid row's are selected, and the user right clicks on one of the selected row headers, the data grid will change the selection to the clicked row.
 
That should only happen if the row is not already selected.
 
Contrast this with the behavior of right clicking on a cell, which behaves correctly.

comments

scottwis wrote Feb 15, 2009 at 12:29 AM

FYI: You can fix this by changing DataGrid.OnContextMenuOpening.

The "if (rowHeader != null)" part needs to check to see if parentRow.IsSelected, and if so, not call HandleSelectionForRowHeaderAndDetailsInput.

SamanthaMSFT wrote Feb 18, 2009 at 5:00 PM

Hi scottwis,

We agree that this is a bug. We're filing a bug in our internal database to track this and it will be fixed in a future release.

Thanks,
Samantha

wrote Feb 18, 2009 at 5:00 PM

wrote Feb 19, 2009 at 5:47 PM

fbmendoza wrote Jul 1, 2009 at 12:23 AM

Hi, just would like to know if this has been fixed in the current release?

Thanks

SamanthaMSFT wrote Jul 1, 2009 at 5:42 PM

Hi, no this has not been fixed in the current release. It is on our radar for a future release, though. Thanks!

wrote Feb 22, 2013 at 1:41 AM

MichaelJohnCoan wrote Oct 14, 2014 at 6:01 PM

Is there any status on this? My team has encountered it also. I assume this applies to the current WPF DataGrid in 4.5.

wrote Oct 14, 2014 at 6:03 PM

MichaelJohnCoan wrote Oct 15, 2014 at 11:09 AM

Is there a preferred work around?

wrote Oct 15, 2014 at 2:05 PM