使用datagrid保存对数据库的更改 [英] Save changes to database using datagrid

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

问题描述

您好我使用vb 2005 express来完成我的项目。我想创建一个数据网格,以允许用户对数据库进行更改。该程序在数据网格中显示数据库,用户可以在那里进行更改。用户尝试保存更改时遇到问题。单击保存按钮时将执行以下代码:

Hello i m using vb 2005 express to do my project. I m suppose to create a datagrid to allow user to make changes to the database. The program display the database in a datagrid where users can juz make changes there. I encountered a problem when user are trying save changes. The following code is executed when the save button is click:


展开 | 选择 | Wrap | 行号

推荐答案

您能否发布确切的错误消息以供我们的专家参考。
Can you please post the exact error message for reference of our experts.


DataAdapter.update()此方法期望数据集为Agumant而非DataTable。 Plz可以解决你的问题
DataAdapter.update() this method expect the Data set as Agumant not DataTable. Plz do tht it may solve your Problem



您好我使用vb 2005 express来完成我的项目。我想创建一个数据网格,以允许用户对数据库进行更改。该程序在数据网格中显示数据库,用户可以在那里进行更改。用户尝试保存更改时遇到问题。单击保存按钮时将执行以下代码:

Hello i m using vb 2005 express to do my project. I m suppose to create a datagrid to allow user to make changes to the database. The program display the database in a datagrid where users can juz make changes there. I encountered a problem when user are trying save changes. The following code is executed when the save button is click:


展开 | 选择 | Wrap | 行号


这篇关于使用datagrid保存对数据库的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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