[Datagrid] Override default keyboard management

Nov 20, 2009 at 4:50 PM


I use Ctrl + Up, Ctrl + Left, .... shorcuts to act on a UserControl in the window KeyBinding.

But when the datagrid have the focus, these shortcuts are managed by the datagrid and not by the KeyBindings defined in the Window.

Is there a way to undo the datagrid KeyBinding management ?


Nov 23, 2009 at 6:50 AM

After taking a look on the source code of the DataGrid, in the DataGrid.OnArrowKeyDown method, if KeyboardNavigation.DirectionalNavigation is set to None, this case is not managed.

Is it a bug or not ?