在Mysql中更新gridview内的值 [英] Update values inside gridview in Mysql

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

问题描述

我在数据库ID,名称,密码,问题中有四列,我在gridview中绑定了这些值.为此,我想在项目模板文本框中绑定名称值...我的问题是当我编辑名称时然后这些值将在我的数据库中更新...请让我知道如何执行此操作...

i have four columns in my database id,name,password,ques,i bound those values in gridview ..for that i want to bind the name values inside item template textbox...my questions is when i edit the name thenthose values get updated in my database..please let me know how to do this.....

推荐答案

如果您使用的是模板"字段,则可以使用编辑模板"那个领域.

在设置属性ShowEditButton=true的位置添加命令字段.

如果需要,处理RowEditing,RowUpdating事件.

重要步骤:
对于上述每个步骤,如果您不了解Google或搜索MSDN
If you are using Template field then use Edit template for that field.

Add the command field where set property ShowEditButton=true.

Handle RowEditing, RowUpdating events if needed.

Important Step:
For each of the above step if you don''t understand the google or search MSDN


http://www.codeguru.com/csharp/.net/net_data/article.php/c19637 [

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

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