I have a DataGridView (datagridview2) with several columns of data. I have a local SQL database table (ResultsDB.sdf) that I’d like to store the data from the datagridview in.
Is there a quick way to do this? Or do I need to read each row in the DataGridView and write it out to the SQL table using SQL statements?
Thanks for any helpful advice!
there are tons of binding samples for sql server to datagridview control over internet. just try one of them…
to start, read following article which has a good simple sample for this:
http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx