1.在GridView1_RowUpdating中访问选择行的信息
try
{
GridViewRow row = GridView1.Rows[e.RowIndex];
string txt = ((TextBox)row.FindControl("txt")).Text.Trim().ToString();
}
catch (Exception ex)
{
Response.Write(ex);
}
GridView1.EditIndex = -1;
BingGrid();
try
{
GridViewRow row = GridView1.Rows[e.RowIndex];
string txt = ((TextBox)row.FindControl("txt")).Text.Trim().ToString();
}
catch (Exception ex)
{
Response.Write(ex);
}
GridView1.EditIndex = -1;
BingGrid();