Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Create New DataTable From DataGridView

$
0
0

I have an unbound datagridview that I enter data into. I'd like to "convert" this datagridview into a new table saved in a database. So for example I insert data to the datagridview, click save, it saves as "table 1". It then clears, I enter some more data, click save, it saves as "table 2".

I wish to then view all datatables in a "server explorer" type control (this isn't important at the moment) and when clicked on open so you can view the data.

How can I do this? and assign a unique name for each table?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>