Private Sub dgvitemsearch_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles dgvitemsearch.KeyDown If e.KeyCode = Keys.Enter And dgvitemsearch.CurrentCell.RowIndex >= 0 Then Dim row As DataGridViewRow row = Me.dgvitemsearch.Rows(dgvitemsearch.CurrentCell.RowIndex) txttaxcur.Text = row.Cells("tax").Value.ToString txtunit.Text = row.Cells("unitname").Value.ToString txtunitid.Text = row.Cells("unit").Value.ToString txticode.Text = row.Cells("icode").Value.ToString txtiname.Text = row.Cells("iname").Value.ToString End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)