How to get data From DGV of Form1 to its corresponding Textboxes in Form2?

JCel

Active member
Joined
Jun 15, 2009
Messages
30
Programming Experience
Beginner
Hi there,

In my application i'm using a form(Form1) in which i have 2 textboxes(id,name)
and i save it in my DB(oledb Oracle).. and in another form(Form2) i have a DataGridView in which I displays all the ids and names.

Now i want to know the following:

When i click on a particular DataGridView row on Form1, it should open Form2 in which I should get the appropriate data in my id and Name TextBoxes!

eg. i have ids(1,2,3) and their corres names(a,b,c) in the datagridview. Now if i click on the 2nd row its id(2) and Name(b) of DGV, it should open Form2 with the appropriate data(2,b) in their corres. TextBoxes.

Could you please provide me the codes!

Regards,
JCel.
 

Latest posts

Back
Top