我想在gridview更新中从GridView1.Rows的已编辑行中的单元格中获取值[获取编辑的行] .Cells [3];
答案 0 :(得分:0)
您应该处理RowUpdating
事件:
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
GridViewRow row = ((GridView)sender).Rows[e.RowIndex];
String fourthCellstext = ((TextBox)(row.Cells[3].Controls[0])).Text;
// .....
}