how to add textbox value from datagridview

  • Thread starter Thread starter Omi4u
  • Start date Start date
O

Omi4u

Guest
Dear all


i am facing issue while inserting value from datagridview

i have a form of items, in that whenever user press f4, a new windows will popup with a datagridview holding values of all categories.

now what i need here is user select the required value by selecting row and select the row by pressing enter.

after he press enter the selected value will appear in textbox .

i tried it but it only selecting the last entered item


please guide
If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Return) Then

frmitemsmaster.CategoryTextBox.Text = ItemscategoryDataGridView.Item(1, ItemscategoryDataGridView.CurrentRow.Index).Value


End If
Me.Hide()

Continue reading...
 
Back
Top