如何在vb.net中将datagride数据保存到databse [英] how save datagride data to databse in vb.net

查看:179
本文介绍了如何在vb.net中将datagride数据保存到databse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将datagride中的数据保存到vb.net.pls中的数据库中,以帮助我

i need save data in datagride to database in vb.net.pls help me

推荐答案

报价:



VB DataGridView自动将更新保存到绑定数据库

http://www.daniweb.com/software-development/vbnet/threads/106745


http://social.msdn.microsoft.com /Forums/zh-CN/winformsdatacontrols/thread/231be175-12d3-44ef-9222-875643a9e7fb/


http://www.codeguru.com/forum/showthread.php?t=489936



VB DataGridView Automatically Saving Updates to a Bound Database

http://www.daniweb.com/software-development/vbnet/threads/106745


http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/231be175-12d3-44ef-9222-875643a9e7fb/


http://www.codeguru.com/forum/showthread.php?t=489936

http://www.google.co.in/#sclient=psy-ab&hl=en&site=&source=hp&q=save+data+from+datagrid+to+database+%2B+vb.net&psj=1&oq=save+data+from+datagrid+to+database+%2B+vb.net&aq=f&aqi=&aql=&gs_sm=e&gs_upl=46023l66419l0l66605l47l38l0l6l6l4l4252l38578l8-3.12l16l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=82f748793b455724&biw=1366&bih=614


如果用数据集填充datagridview并用dataadapter填充数据集,则使用dataatadpter的更新方法可以将数据集中的更改保存到数据库中,如果没有,则不使用数据集填充datagrid并手动填充它,您必须编写函数以从datagrid逐行读取并在数据库上执行插入命令或更新命令并执行命令
if you fill datagridview with dataset and fill dataset with dataadapter, with update method of dataatadpter you can save changes in dataset to database and if you didn;t fill datagrid with dataset and manuly fill it, you must write function to read row by row from datagrid and make insert command or update command and execute command on database


这篇关于如何在vb.net中将datagride数据保存到databse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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