DataSet ds = es.GetDataSet("select * from employee");
this.GridView1.DataSource = ds;
this.GridView1.DataKeyNames = new string[] {"id"};
this.GridView1.DataBind();
//this.GridView1.FindControl["txtW
for (int i = 0; i <=this.GridView1.Rows.Count - 1; i++)
{
TextBox tx = (TextBox)GridView1.Rows[i].FindControl("txtWD");
tx.Text = ds.Tables[0].Rows[i]["id"].ToString();
GridView gdv = (GridView)GridView1.Rows[i].FindControl("GridView2");
gdv.DataSource = ds;
gdv.DataBind();
TextBox tx2 = (TextBox)gdv.Rows[i].FindControl("txtWD1");
tx2.Text=Convert.ToString(i);
}