Is there any way to copy only few columns schema from a datatable using clone method? if not what is the best solution to copy few columns with schema from one datatable to another.
您应该使用,
DataTable newTable = dataTable.DefaultView.ToTable(false, columnsnamearray);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.