I have successful imported data from excel to a datagrid using vb.net.
Now,could anybody help me with a code to insert all the data from the datagrid into a table.
Import data from datagrid to database table.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Raghavendra URank #1,371 · 1.2K reputationPosted Jul 26, 2010, 4:02 AM EDT
Hiren SoniRank #694 · 3.5K reputationPosted Jul 26, 2010, 4:16 AM EDT
you have to make for loop which iterate through all the rows and columns,
you have to get its value and you have to insert one by one row in table.
if you are inserting all the data in the table.
while importing in datagrid , at the same time you can also insert in the table.
it will be easier than doing this !!
---------
don't 4get to accept answer, if it helps you!!!
Sam HobbsRank #107 · 20.5K reputationPosted Jul 26, 2010, 7:49 PM EDT