Question Add selected Datagridview row of Form 2(child) to Parent Datagridview cell.

abhit_kumar

Member
Joined
Aug 13, 2008
Messages
19
Programming Experience
Beginner
Dear All Experts,

I am new in VB.net. Your help will be really appreciating.

I have two forms. Form1 and Form 2.

I have opened the Form 2 from Form 1. By using this code.

Button click event
===============
Dim F2 As New Form2
F2.Show()

In Form 2 there will be datagridview which is filled by dataset.

Now i want to Add the datagridview selected cell value to Form 1 Datagridview by using click event. i can do this task in same form, but when form is different Form 2 data is not able to add in form 1.

How to achieve this. Please provide the code for the same.

Thanks,
AKM
 
Firstly, do you want to copy the row, as it says in the title, or the selected cell, like it says post? Secondly, using the Click event of what? Thirdly, is Form2 going to close at that point or are you going to leave it open so the user can make further selections? Finally, do you want the user to be able to access Form1 while Form2 open?
 
Back
Top