RowEditing事件问题
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
int i = e.NewEditIndex;
string s = this.GridView1.Rows[i].Cells[i].Text;
this.GridView1.Rows[i].Cells[i].FindControl(s);
bind();
}
一点GridView里编辑按钮就提示
指定的参数已超出有效值的范围
参数名:index
这个是不是也得有所判断,就是不知道怎么判断。
总有错误,不知道怎么回事。