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

Insert Rows in DataGridView from different Form

$
0
0
I have a datagridview on "Form 1" which is unbound. I later intend to copy the data from the datagridview into a new datatable stored in a database. How can I get values entered into a textbox on "Form 2" into the datagridview? I also wish to be able to add multiple rows by clearing all of the textbox values. So when the user clicks the "Add More" button, it clears the textboxes, but adds a new row to the datagridview ready to receive more data. I've looked for solutions and can only find textbox to datagridview tutorials where both are on the same form.

Viewing all articles
Browse latest Browse all 2535

Trending Articles



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