I have a bunch of data tables (In a list), all with 50 columns.
Say I want to build a new data table with columns 20-29 and 40-49.
and then copy all rows from each data table into the new one. but only those selected columns.
DataTable.Merge() will not work since I only want a subset of the columns.
What’s the best way to achieve this goal?
I think simple plain old for loops should do the trick under these conditions
Note
I haven’t compiled the code.