//list是datatable类型
for (int i = 0; i < list.Rows.Count; i++) { var A = list.Rows[i]["列名"].ToString(); var B = list.Rows[i]["ID"].ToString(); }
标签:Rows,list,循环,ToString,var,取值,DataTable From: https://www.cnblogs.com/zhang-3/p/16831202.html
//list是datatable类型
for (int i = 0; i < list.Rows.Count; i++) { var A = list.Rows[i]["列名"].ToString(); var B = list.Rows[i]["ID"].ToString(); }
标签:Rows,list,循环,ToString,var,取值,DataTable From: https://www.cnblogs.com/zhang-3/p/16831202.html