My win forms project has a DataGrid in which I update the contents of an edited cell on the CurrentCellChanged event. That event only fires when you click the mouse in a different cell.
The problem is that most users are used to Excel where the event fires when you move from a cell with one of the 4 arrow keys. In the DataGrid this won't work. The CurrentCellChanged event doesn't fire when you press one of the arrow keys.
I've tried keypress, keydown, keyup, and all the rest to try to catch the key press of an arrow key when you move from one cell to the next. But there just isn't one.
How do I get an event to fire when focus moves from one cell to the next using the arrow keys?
The problem is that most users are used to Excel where the event fires when you move from a cell with one of the 4 arrow keys. In the DataGrid this won't work. The CurrentCellChanged event doesn't fire when you press one of the arrow keys.
I've tried keypress, keydown, keyup, and all the rest to try to catch the key press of an arrow key when you move from one cell to the next. But there just isn't one.
How do I get an event to fire when focus moves from one cell to the next using the arrow keys?