Someone have an idea on how to convert a system.collections.generic.list(of double) to a datatable. The number of items in de sub arrays are unknown, so i think this could be solved best with code. I’ve tried a for each but this is taking to much time because the list can be very big.
lets init an empty datatable and retrieve the length of longest array within the list
Lets add datacolumns of datatype double to the datatatable - as many as we do have items in the longest array
for the column name we do use the index output from for each as well
lets create the row itemarrays and add the datarows to the datatable: