如何更改表中的数据并在单击更新按钮时保存回该表。? [英] How Do I Change Datas In A Table And Save Back To That Table When Update Button Clicked.?

查看:83
本文介绍了如何更改表中的数据并在单击更新按钮时保存回该表。?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的更新表单中有一个datagridview,它显示了表中特定用户的数据。我只需要让用户编辑该数据(他应该在表单中提供的字段中提供新数据,当点击更新按钮时,表中的数据应该受到影响)

例如如果他选择了id(主键),并且如果他添加了所有其他字段,则应该更新该特定id(主键)中的行。

请帮助。


I have a datagridview in my update form which shows the data of a particular user from a table. All i need is to enable user to edit that data (He should provide the new data in the fields provided in the form and when clicked update button, the data in the table should be affected)
For eg if he selects the id(primary key) and if he adds all other fields the row in that particular id(primary key) should be updated.
please help.

推荐答案

参考: C#DataGridView数据库操作 [< a href =http://csharp.net-informations.com/datagridview/csharp-datagridview-database-operations.htmtarget =_ blanktitle =New Window> ^ ]


这篇关于如何更改表中的数据并在单击更新按钮时保存回该表。?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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