protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
viewbind();
}
其中
private void viewbind()
{
GridView1.DataSource = AdminInfo.FindAll(); <------该方法为ActiveRecord
GridView1.DataBind();
}
我已经确认过 e.NewEditIndex的值了 从0开始到最后一行结束。