gridview更新时获取编辑的值

gridview更新时获取编辑的值

 前台有控件

   TextBox txtname = (TextBox)GridView1.Rows[e.RowIndex].FindControl("textbox1");
          Response.Write(txtname.Text);

 前台无控件

 string aa =((TextBox) (GridView1.Rows[e.RowIndex].Cells[2].Controls[0])).Text.ToString().Trim();

 

 

posted @ 2013-11-26 16:55  新娃互联  阅读(210)  评论(0编辑  收藏  举报