Hi sujithmtla,
Let MDI form refers to Form1 and Windows form refers to Form2,
first you must create an overloaded constructor in form2 and a global object of form1 , your already existing default constructor is :
public Form2()
{
InitializeComponent();
}
The global object and the overloaded constructor code will be :
public static Form1 Frm1 = new Form1();
public Form2(Form1 form)
{
InitializeComponent();
Frm1 = form;
}
Now you can set your datagridview in form1 's modifier to public .
Then in the click add button event you will insert this code for opening form2 :
Form2 Frm2 =new Form2(this);
Frm2.show();
I Hope this time it is clear ,
Good luck
:)