0

how to create a pop up form for each row in datagridview that holds detailed info about that particular row of a column ? I want a editable pop up form with two text boxes and sum of both text boxes in the selected cell of the column . i don't know what approach to take ,
can someone provide me with a link please.

4
Contributors
4
Replies
8
Views
5 Years
Discussion Span
Last Post by rony001
0

Why dont you create a form to act like a pop-up, that onload() load the datagrid information?

Edited by SaaDwTk

0

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()

-1

A form that will pop up everytime you click on the datagridview's row is easy. Follow the shared code above by Khair.

Votes + Comments
Contributes nothing
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.