Hi Everyone,
i have two forms let say form1 and form2. Form2 has all the controls(datagridview,label,button,groupbox).
My requirement is read all the controls(Id,Name) from form2 in form1 and write it into resource file.
i am able to read all the controls(Id,Name) except datagridview.
How to Get the datagridview columns in form1?
Please help me anyone.
here is my piece of code
--Form1
form2 f=new form2();
foreach (Control cn in f.Controls)
{
if ((cn.GetType() == typeof(System.Windows.Forms.DataGridView)))
{
}
}
thanking you,