摘要:
查找DataTable中的DataRow DataRow dr = dt.Rows.Find(gv.DataKeys[e.RowIndex]["id"].ToString()); dr["flag"] = "0";Linq IEnumerable<DataRow> q = from dr in dt.AsEnumerable() where dr.Field<int>("id").ToString() == gv.DataKeys[i]["id"].ToString() 阅读全文