I’ve a Datatable with about 156K and I want to make 6 Datatable and divide the records to each of them like table1 will hold rows from 0 to 30k and table 2 will hold rows from 30k1 to 60k and so on.
the big table is ordered with numerical column that goes from 0 to 14
any suggestions on how to do this without looping?
You can use LINQ’s
GroupBy:Testdata:
Split into multiple tables:
Note that this will split them into tables with 26000 rows in each since 156000 / 6 = 26000.