Get Row of Parent GridView when paging on Child GridView

gprabaka

Newcomer
Joined
Jul 14, 2005
Messages
21
Good Morning,
I have a page with a GridView GV1 with another GridView Embedded in it called GV2. GV2 is typically not available until I fire an event on it, when I have to instantiate it by a statement

GridView GVChild = (GridView)GV1.SelectedRow.FindControl("GV2");

However, on firing the OnPageIndexChanging event of GV2, I do not know how to get the selectedRow value of the Parent GridView GV1, so I can page on only records associated with the row of GV1.

Thanks
Guha
 
Back
Top