如何在asp.net中的现有gridview中添加一行 [英] how to add a row to the existing gridview in asp.net
本文介绍了如何在asp.net中的现有gridview中添加一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两列的gridview,其中第一列包含一个边界域,另一列是dropdownlist.我绑定了数据库中的数据.现在我的问题是,如果我从下拉列表中选择任何值,则立即应使用与上述相同的控件来创建一行,而不用像上面一样.....
i have a gridview of two columns, in that first column contains one boundfield and another one is dropdownlist. i bound the data from the database. now my problem is if i select any value from the dropdownlist then immediately than one row should be created with the same controls as like above.....
推荐答案
以下链接将为您提供示例
http://www.vkinfotek.com/gridview/gridview-footertemplate.html [ ^ ]
http://www.revenmerchantservices.com/page/gridview-add-new-row.aspx [^ ]
享受:)
The following links will guide you with examples
http://www.vkinfotek.com/gridview/gridview-footertemplate.html[^]
http://www.revenmerchantservices.com/page/gridview-add-new-row.aspx[^]
Enjoy :)
向数据源添加一个空行并重新绑定网格.
Add an empty row to the datasource and rebind the grid.
这篇关于如何在asp.net中的现有gridview中添加一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文