Subscribe to the
KeyDown
event of
TextBox
and handle inserting value into
DataGridView
logic if the key pressed is
Enter
key as shown below:
Private Sub TextBox1_KeyDown(ByVal sender As System.Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
If e.KeyCode = Keys.Enter Then
End If
End Sub