Suppose I have a DataGrid
and a Button
. CanUserAddRows
is set to True
. Let this dataGrid have two DataGridTextColumns
namely "Name" and "Age".
Now if user takes the following actions :
- He adds name as XYZ and Age as 20. Then he press enter. So a new row will be added to the datagrid.
- He adds name as ABC and Age as 12. Then he press enter. So a new row will be added to the datagrid.
- He keeps name empty and press Enter or TAB then I want to move focus to
Button
instead of next cell of datagrid.
I have watched many questions but I don't get the logic of if user left the name empty and how do I move focus to Button instead of next cell.