System.Data.DataView view =new System.Data.DataView(yourOriginalTable);

System.Data.DataTable selected = view.ToTable("Selected",false,"col1","col2","col6","col7","col3");


http://stackoverflow.com/questions/18402324/copy-specific-columns-from-one-datatable-to-another
文章標籤
全站熱搜
創作者介紹
創作者 amychang2014 的頭像
amychang2014

工作需要筆記

amychang2014 發表在 痞客邦 留言(0) 人氣(796)