protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
this.GridView1.EditIndex = e.NewEditIndex;
TextBox tb= this.GridView1.Rows[index].FindControl("Textbox1") as TextBox;
Response.Write(tb.Text);
}
protected void GridView_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "ABC")
{
foreach (GridViewRow gvr in this.GridView.Rows)
{
TextBox textBox = (TextBox)gvr.FindControl("TextBox1");
}
}
}
同意楼上观点
同意楼上观点