//list是datatable类型
              for (int i = 0; i < list.Rows.Count; i++)
                        {
                            var A = list.Rows[i]["列名"].ToString();
                            var B = list.Rows[i]["ID"].ToString();          
                        }

 

posted on 2022-10-27 10:09  尝尝手指  阅读(67)  评论(0编辑  收藏  举报