var result=new DataTable().DefaultView.ToTable(false, "col1", "col2");
将DataRow[] 转换成dt类型,并指定dt的列 复制给dt2;
DataTable dt2= DataRow[].CopyToDataTable().DefaultView.ToTable(false, "col1", "col2");
var result=new DataTable().DefaultView.ToTable(false, "col1", "col2");
将DataRow[] 转换成dt类型,并指定dt的列 复制给dt2;
DataTable dt2= DataRow[].CopyToDataTable().DefaultView.ToTable(false, "col1", "col2");