从数据表更新数据库中的数据 [英] Update data in Database from datatable

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

问题描述

我有一个datagridview,它是通过数据库通过数据表中的用户提供的值填充的
..



现在我想如果在gridview中更新数据,则需要一次将其发送到我的数据库.我不想使用循环.有什么办法可以做到.


请使用

I am having a datagridview that is populated from user supplied values from datatable through database
..



Now i want if data is updated in gridview it needs to be sent to my Database at one go. i dont want to use loop. is there any way to do so.


pls help

推荐答案

使用网格的数据源将其连接到数据库表.在这里看看:
http://msdn.microsoft.com/en-us/library/1x64c23x.aspx [ ^ ]

祝你好运!
Use the datasource of the grid to connect it to the database table. Have a look here:
http://msdn.microsoft.com/en-us/library/1x64c23x.aspx[^]

Good luck!


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

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