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

Refresh one row in a datatable from sql using ado.net

$
0
0

After I edit, delete, or add a new row in sql I would like just that row to update in the datatable on the form. for example if I have a datatable with all the products and it's loaded in a datagridview and when I click the datagridview and press edit an edit form fills up with textboxes and when I press save it updates in sql I now want just that updated row to update the datatable which in turn will update the datagridview. How can I do this?

Also what do you hold of reusing the same table over a few forms in visual studio?


Debra has a question


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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