Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating Datagridview values into database

Tags:

c#

I am developing an forms application where user can get tables data from database into gridviewcontrol which is editable so that user can update some data in the grid and when user clicks update buttonon the form the updated datagrid values should update in database. User can update more column values at a time. I am working on datagrids for the frist time and I managed to get data from databse and display in data grid but I am not able to update edited data back top database.

like image 890
62071072SP Avatar asked Dec 20 '22 21:12

62071072SP


1 Answers

Check the links below.

http://www.codeproject.com/Articles/12846/Auto-Saving-DataGridView-Rows-to-a-SQL-Server-Data

C# Issue: How do I save changes made in a DataGridView back to the DataTable used?

WinForms DataGridView - update database

C# WinForms - how to send updates from DataGridView to DataBase

Save changes in dataGridView

like image 177
Alex Kryvdyk Avatar answered Dec 23 '22 11:12

Alex Kryvdyk