what is the best way to fill a datatable with the contents of an array?
Printable View
what is the best way to fill a datatable with the contents of an array?
By looping through the array and adding a new row to the datatable for each element. Thought that's pretty obvious to you, I'm sure. Any specific aspect of this you're looking into?
I thought there might be some obscure method that would pull in an array with one line of code ... guess not though ...Quote:
Originally Posted by mendhak
Thanks for the reply!