datagridview更新 [英] datagridview updation

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

问题描述

我在SQL查询中有9个字段.我正在使用文本框和组合框将数据插入数据库.我还使用网格视图来查看选定的值.

现在,我要通过键入网格视图来更新网格视图的所选行.我不知道该怎么做,请提供对我有帮助的代码.

I have 9 fields in a sql query. I am using text and combo boxes to insert data into the database. I am also using a grid view to view the selected value.

Now I want to update the selected row of the grid view by typing to the grid view. I have no idea how to do that, please give the code which helpful to me.

推荐答案

HI,
他们在此链接中提到了如何插入,更新和删除
http://csharpdotnetfreak.blogspot.com/2009/05/gridview-sqldatasource-insert- edit.html [ ^ ]


他们在此链接中提到了如何插入和更新
http://www.codeproject.com/KB/aspnet/InsertingWithGridView.aspx [ ^ ]


试试吧...

In this link they have mentioned how to insert,update and delete
http://csharpdotnetfreak.blogspot.com/2009/05/gridview-sqldatasource-insert-edit.html[^]


In this link they have mentioned how to insert and update
http://www.codeproject.com/KB/aspnet/InsertingWithGridView.aspx[^]


Try it...


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

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