create a new form and add three textBoxs with label i.e value 1 , value 2 , sum.
on Main form select the grid and goto property then Event - Click . Double click and add the follwing code.
Dim frm as new form1
Dim i As
Integer
i =
DataGridView1.
CurrentRow.Index
frm.textbox1.Text
= DataGridView1.
Item(0, i).Value
frm.TextBox2.
Text =
DataGridView1.
Item(1, i).Value
frm.TextBox3.
Text =
DataGridView1.
Item(0, i).Value +
DataGridView1.
Item(1, i).Value
frm.showDialog()
khair.ullah
Junior Poster in Training
55 posts since Aug 2012
Reputation Points: -2
Solved Threads: 3
Skill Endorsements: 0
A form that will pop up everytime you click on the datagridview's row is easy. Follow the shared code above by Khair.
Icone
Junior Poster in Training
87 posts since Oct 2012
Reputation Points: -1
Solved Threads: 5
Skill Endorsements: 0
Question Answered as of 5 Months Ago by
SaaDwTk,
khair.ullah
and
Icone