I have this code in the onKeyDown event of the datagridview.
This works. When the Enter button is pressed, it acts as the TAB button.Code:Private Sub DataGridView1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyDown Select Case e.KeyCode Case Keys.Return e.SuppressKeyPress = True SendKeys.Send("{TAB}") End Select End Sub
The problem I am having is this only works if the datagridviewer is selected.
As soon as I enter data into a cell (A cell is selected) the code wont work as it is not set for the cell keyDown event. The event does not exist, so I have to somehow create it.
Does anyone know how to do this?




