I've created a WPF application that includes a datagrid with one editable column. As the user enters values in it, then presses Return, the focus moves to the next row. All works great.
The customer has asked me to add support for the up and down cursor keys so that when a cell in the grid is in edit mode, pressing down gives the same results as pressing Return. Pressing up will be like Return, except that the selected row will become the one above the edited cell, rather than the one below.
I've looked for keypress events on the cell - no joy - and I've captured the keydown event on the datagrid itself but this didn't fire when I press a cursor key.
Can anyone suggest a solution please?
EDIT
Should have mentioned, I'm using an MVVM style context and binding to a filtered set of data in an ICollectionView.