I have a DataGrid in which I have two columns, namely Name and Group .
I used the EnterKeyTravarsal class, so I can use Enter as a TAB .
Also based on some conditions, I add a new row to the DataGrid in the ViewModel using InputBindings.
But when a new row is added, I see that the last cell that was focused just before adding a new row remains in edit mode.
Here is a sample project that I created to clearly explain my problem.
c # wpf mvvm xaml datagrid
Vishal
source share