How to add array of string to an existing data column

I have this array of string that contains the names of the customer. There is this existing data table that I would create a new data column called “Name”. I want to add the Names from the array, to this newly created data column, in the existing datable. What’s the best way of doing this? Thank you.


One of the simplest way is as the following, for example.

Note: assumed number of array item is less or equal number of row of datatable.

If you have large number of array items, it might be better to use Invoke Code, Linq etc.

Hope this helps you.


Thanks, I tried it and it works.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.