Select your gridview and go to property and then Event & then select MouseClick event and Double click . Then add the follwing Code
Dim i As
Integer
i =
DataGridView1.
CurrentRow.Index
textbox1.Text
= DataGridView1.
Item(0, i).Value
TextBox2.
Text =
DataGridView1.
Item(1, i).Value
fextBox3.
Text =
DataGridView1.
Item(2, i).Value
textbox3.
Text =
DataGridView1.
Item(3, i).Value
khair.ullah
Junior Poster in Training
55 posts since Aug 2012
Reputation Points: -2
Solved Threads: 3
Skill Endorsements: 0
Some coding mistake
TextBox3 instead of fextbox3
khair.ullah
Junior Poster in Training
55 posts since Aug 2012
Reputation Points: -2
Solved Threads: 3
Skill Endorsements: 0