DataTable dt ;for (int i = 0; i < dt.Rows.Count; i++) { DataRow row = dt.Rows[i]; row.BeginEdit();//开启编辑 row["要改的字段"] = "要改的值"; row.EndEdit();//结束编辑 }