You have to bind the data for the second grid in the RowDataBound event of the first grid likeprotected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType.Equals(DataControlRowType.DataRow))
{
//Since you said you have a grid view inside a gridview.
GridView gridView2 = e.Row.FindControl("GridView2") as GridView;
//Assuming GetData() will return the datasource
gridView2.DataSource = GetData();
//When DataBind is called, the RowDataBound event for
//gridview2 will be fired
gridView2.DataBind();
}
}