I have a DataGrid where the SelectedItem bound to the VM property Selected. I have a search control that will search and SelectedItem the DataGrid changes (and scrolls in the view). WPF 4.0 and DataGrid SelectionUnit="FullRow" .
My focus problem. DataGrid gets focus (via an attached property / binding), but you cannot use the Up , Down , Page Up , Page Down keys to change rows ( SelectedItem ). If I click again, the first cell of the first row is selected, which changes the SelectedItem .
On the bottom line, how can I adjust the keyboard focus on the DataGridCell for SelectedItem when the DataGrid gets focus?
There are so many DataGrid / Focus questions and have already tried several times. Thank you for your help.
source share