Hi!,
I have a formProd and a dataGridView in it.
I want to access the dataGridview of formProd from formMain.
foreach (Form form in Application.OpenForms)
{
formProd prd = (formProd)form;
if (prd is formProd)
prd.itemsGridView.DataSource = DS.Tables["product_Header"];
}
this gives me InvalidCastException.
can any one tell me how to correct this.
Thanks in advance