如何将行添加到网格视图 [英] How to add the rows to the Grid VIew

查看:89
本文介绍了如何将行添加到网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有诸如名字,姓氏,DOB之类的字段.我有3个按钮,添加,删除,取消.
单击添加按钮时,将一行添加到网格视图,这是为了将多个记录输入到数据库中.

单击删除按钮时,在网格视图中删除一行,这是用于删除记录的.使用SQL
Server

Hi
I have the fields like First Name, Last Name,DOB. and i have the 3 Buttons Add,delete,Cancel.
When Click the Add Button add the one row to the grid view,this is for a enter the multiple records in to the DB.

When Click the Delete Button Delete the one row in the grid view,this is for a Delete the record . Using SQL
Server

推荐答案

看看本文,并根据需要选择要学习,研究和实现的功能: ^ ]
Have a look at this article and pick the features to learn, study and implement as you need: Editable Nested GridView (All-in-One)[^]


http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-insert-edit-update-and-delete--the-ado.net-way.aspx [ google [
http://csharpdotnetfreak.blogspot.com/2009/05/gridview-sqldatasource-insert-edit.html[^]
http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-insert-edit-update-and-delete--the-ado.net-way.aspx[^]

You can find many more on google[^].


这篇关于如何将行添加到网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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