通过代码在agridview上插入,更新,删除 [英] insert, update,deletion on agridview thru code

查看:72
本文介绍了通过代码在agridview上插入,更新,删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目是门诊管理系统(带有c#的asp.net).
在一种情况下,管理员需要查看医生的详细信息,
我使用了三层架构中的网格视图,现在我要启用管理员upadte,删除,插入gridview列的功能,即数据需要输入数据库,我没有使用向导.我搜索了Internet但无法做到这一点完全
.doctor表,包含以下各列
doctorid(pk),
医生名,
专业化,
位置,
经验,费用.
我该如何通过代码对agrid视图进行更新,插入,删除操作.还要指定存储过程.
在此先感谢

my project is outpatient management system(asp.net with c#).
in one scenario administrator,administrator needs to view the doctor details,
i made it using grid view in a three tier architecture,now i want to enable the administrator upadte ,delete ,insert gridview columns,that data needs to enter database ,i am not using the wizard.i searched internet but not able to do it completly
  .doctor table consisting of following columns
doctorid(pk),
doctorname,
specialization,
location,
experience, fees.
how can i do update , insert ,delete operations on agrid view through code.also specify the stored procedure.
thanks in advance

推荐答案

看看下面的链接.
http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-insert-edit-update-and-delete--the-ado.net-way.aspx

我不确定您曾经在Internet上搜索过哪些关键字,但是这些关键字在Google上可以找到很多与此主题相关的链接.
Have a look at below link.
http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-insert-edit-update-and-delete--the-ado.net-way.aspx

I am not sure which keywords you used to search this on Internet, But their are plenty of links available on Google for this topic.
Google Search Result


这篇关于通过代码在agridview上插入,更新,删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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