如何使用GridView控件更新数据 [英] how to update data using gridview control
本文介绍了如何使用GridView控件更新数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我正在vb.net中开发一个应用程序.我想使用数据gridview控制手段来更新数据库,当我在特定的单元格中输入值时,即更新数据库,以及像excel表格一样计算单元格末尾的加法.
请帮助我.
预先感谢您.
hello
I am developing a application in vb.net. I want to update my database at using data gridview control means when i enter a value in particular cell that time my database is update as well as calculate addition of end of cell just like excel sheet how it possible.
pls help me.
Thank u in advance.
推荐答案
您已经在在线和代码项目上获得了大量文章.
自动将DataGridView行保存到SQL Server数据库 [ VB DataGridView自动将更新保存到绑定数据库 [ ^ ]
具有集成的过滤,排序和更新对SQL的更改的DataGridView [ ^ ]
如果您通读了以上文章,则应该可以完成您所请求的操作.
You have got a ton of articles available online and on code project.
Auto Saving DataGridView Rows to a SQL Server Database[^]
VB DataGridView Automatically Saving Updates to a Bound Database[^]
DataGridView with integrated filtering, sorting, and updating changes to SQL[^]
If you read through the above articles, you should be able to do what you have requested.
尝试此操作-
使用分页在DataGridView中添加,编辑和删除 [自动将DataGridView行保存到SQL Server数据库 [
try this-
Add, Edit, and Delete in DataGridView with Paging[^]
Auto Saving DataGridView Rows to a SQL Server Database[^]
尝试此GridView一目了然
这篇关于如何使用GridView控件更新数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文