如何修改datatable某列,选定行数的值,写的这写不来了
for (int i = 1; i < dtQxz.Rows.Count; i++)--------------------编程问答-------------------- 谁会帮我改一下
{
conditon = string.Format("depth>={0} and depth<{1}", dtQxz.Rows[i - 1]["depth"].ToString(), dtQxz.Rows[i]["depth"].ToString());
foreach (DataRow row in dtMud.Select(conditon))
{ row["mw"] = "2.26"; }
}
补充:.NET技术 , C#