在GridView中显示文本框和标签 [英] displaying textbox and label in gridview
本文介绍了在GridView中显示文本框和标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的查询是,从数据库中检索到的数据应显示为网格中的标签.....如果我使用数据行fn在网格底部添加新的空行,则新行应仅包含我可以通过其输入值的文本框.........
my Query is,the data retrieved from the database should be shown as label in a grid.....and if i add new empty row at the bottom of the grid using data row fn, the new row should contain only the textbox through which i can enter the values .........
推荐答案
请参阅此链接. http://ramanisandeep.wordpress.com/2008/11/16/gridview-insert -update-delete/ [ ^ ]
http://www.aspdotnetfaq.com/Faq/How- to-insert-row-in-GridView-with-SqlDataSource.aspx [
Please Refer this link..
http://ramanisandeep.wordpress.com/2008/11/16/gridview-insert-update-delete/[^]
http://www.aspdotnetfaq.com/Faq/How-to-insert-row-in-GridView-with-SqlDataSource.aspx[^]
您可以使用网格视图的页脚模板..
You can use footer template of a grid view..
<footertemplate>
<asp:textbox id="txtb" runat="server" xmlns:asp="#unknown"></asp:textbox>
</footertemplate>
在这里检查更多..
页脚模板
GridView页脚
页脚模板
希望对您有所帮助.
check more here..
Footer Template
GridView Footer
Footer Template
Hope this helps..
这篇关于在GridView中显示文本框和标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文