//删除 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { if (AddSQLStringToDAL.DeleteRows("TabTeachers", "User_ID", GridView1.DataKeys[e.RowIndex].Value.ToString())) { BindData(); } }