Automatically add a new row when the user presses "Tab"
Windows Forms
2
Posts
2
Posters
0
Views
1
Watching
-
I would like to have the grid automatically add a new row when the user presses "Tab" from the last cell in the last row of the grid. I have set AllowUserAddRows property to "false" Thanks, Sri
I think this should be simple. You need to capture the KeyPreview on dgv, check if there is a cell selected, then if it is the last cell,last row and then add a new column. Then set the selection to the first cell of the new row.