I have a DataGrid
in WPF.
I want to move to the NextCell when i hit Enter and when the LastColumn is reached it should have the default Enter function of creating or moving to the next row.
I dont want to use Tab
How can i do this in WPF.
I have a DataGrid
in WPF.
I want to move to the NextCell when i hit Enter and when the LastColumn is reached it should have the default Enter function of creating or moving to the next row.
I dont want to use Tab
How can i do this in WPF.
A much simpler implementation. The idea is to capture the keydown event and if the key is "Enter", then move to the next tab which is next cell of the grid.
try this i think it work at least worked for me .
in this code when a cell got focus and user key down on that next cell will get focus. Good luck hope this help you.
EDIT :
Set this function as datagrid PreviewKeyDown event.