更新的DataGridView值代入数据库 [英] Updating Datagridview values into database

查看:108
本文介绍了更新的DataGridView值代入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个形式应用,其中用户可以得到表从数据库
数据转换成gridviewcontrol这是可编辑的以便用户可以在网格更新一些数据,当用户点击更新buttonon形式更新的数据网格值应该更新在数据库中。用户可以同时更新多个列的值。
我工作的DataGrid中的弗里斯特时间,我设法从数据网格DATABSE和显示数据,但我无法更新编辑的数据备份前的数据库。

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.

推荐答案

检查下面的链接。

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

C#问题:我如何保存一个DataGridView做回用的DataTable变化

的WinForms DataGridView的 - 更新数据库

C#的WinForms - 如何从DataGridView更新发送到数据库

保存的dataGridView变化

这篇关于更新的DataGridView值代入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆