I have developed an application where I will have 2 gridviews one is parent and the other is child which is an Item template to parent. I would like to find the child control in a function of my own but I am unable to get can any one help me.
This is my code
private void Save()
{
GridView gv = (GridView)gvCustomers.FindControl("gvOrders"); // I am unable to get the child grid here .. Is it correct way of finding or is there any other way
}
Loading

SenthilkumarPosted Apr 3, 2012, 5:46 AM
You need to iterate the parent grid control rows.
There every row will have the another grid control.
Here the gvProducts is parent control and every row will have the sub grid control. i.e gvSales (child)
Dorababu MekaPosted Apr 3, 2012, 6:09 AM