在网格视图中生成动态文本框 [英] generate dynamic textbox in grid view

查看:67
本文介绍了在网格视图中生成动态文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在dropdownlist click上在gridview中生成动态文本框.下拉列表未嵌套在gridview中.它不在gridview中.
我希望当我选择下拉列表值2或3时,在下拉列表上生成的三个gridview行都单击.
谢谢
Naveen Sharma

Hi,
i want to generate dynamic textboxes in gridview on dropdownlist click.the dropdown list is not nested in the gridview.it is out of the gridview.
i want that when i select dropdown value 2 or 3 the three gridview rows generated on dropdown click.
Thanks
Naveen Sharma

推荐答案

尝试以下操作:
如何在网格视图中动态创建模板列 [ ^ ]
http://10stupidthings.wordpress.com/2007/07/18/gridview-and -dynamic-controls/ [ ^ ]
http://www.eggheadcafe.com/microsoft/ASP- NET-Web-Controls/31622106/dynamic-gridview-columns.aspx [ http://msdn.microsoft.com/en-us/library/cc488562.aspx [ ^ ]



--Amit
Try this:
How to create template columns dynamically in a grid view[^]
http://10stupidthings.wordpress.com/2007/07/18/gridview-and-dynamic-controls/[^]
http://www.eggheadcafe.com/microsoft/ASP-NET-Web-Controls/31622106/dynamic-gridview-columns.aspx[^]
http://msdn.microsoft.com/en-us/library/cc488562.aspx[^]



--Amit


那是什么问题?在dropdownchange事件中,您需要向数据源添加三行,并且更新时它将自动显示在网格中.您可以使用updatepanel通过dropdownlist在回发时更新gridview.

对于更新面板,您可以在这里:
UpdatePanel控件概述 [ UpdatePanel控件 [ UpdatePanel类 [
So, what is the issue? In dropdownchange event, you need to add three rows to the datasource and it will be automatically shown in the grid on update. You can use updatepanel to update the gridview on postback done by dropdownlist.

For update panel, here you go:
UpdatePanel Control Overview[^]
UpdatePanel control[^]
UpdatePanel Class[^]
All you need to know with sample code is present and explained.


这篇关于在网格视图中生成动态文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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