Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fill DataTable from String Array

Status
Not open for further replies.

jbsys

Programmer
May 6, 2005
51
CA
Hi;
I have a dll that passes a datatable to the calling program. The information I need is in a string array inside the DLL. The issue is How do I load the items in the string array into the dataTable?

Any help would be greatly appreciated.

Thanks
jbsys.
 
Hey jbsys.

I haven't done this in a while so I can't give you the exact code... but essentially:

Get the datatable from your dll
Create a new row from your datatable
Populate the new row from your string array
Add the row to your datatable.

Should get you started.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top