日期:2014-05-18 浏览次数:20472 次
TextBox tb1=GridView1.Rows[1].Cells[1].FindControl("控件ID") as TextBox; Response.Write(tb1.Text);
------解决方案--------------------
protected void Button1_Click(object sender,EventArgs e) { if(GridView1.Rows.Count > 0 && GridView.Rows[0].Cells.Count > 0) { TextBox1.Text = GridView1.Rows[1].Cells[1].Text; } }