Search code examples
c#.netwpfdatagridwpfdatagrid

WPF Datagrid: How to stay on the same row after pressing Enter?


Our client requests to stay on the same row after pressing Enter to confirm a cell update. Is this possible? Perhaps instead of going down, it could go one cell to the right instead?

Many thanks,


Solution

  • after handling the OnKeyFown Event to ByPass the Enter key ... set another Event "OnKeyUp" and try to get Enter key and do whatever you want with that event