动态创建下拉列表 [英] Dropdownlist to be created Dynamically

查看:98
本文介绍了动态创建下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我在网页上的gridview控件之外有一个Button控件.我想在(Button)控件的按钮单击事件中在Gridview中添加新行.
1)如何在Button单击事件的Gridview内添加新行.
2)该行还包含Dropdownlist控件,该控件将从数据库表中填充.
我怎样才能满足上述2个要求.

请回复,

问候,
aamir

Hi Friends,
i have a Button control outside of my gridview Control on web page.i want to Add new Rows in my Gridview on button click event of the (Button)control.
1)how can i add the new rows inside of a Gridview on Button click event.
2)The row also contains Dropdownlist control which is going to be filled from Database table.
how can i met the above 2 requirements.

Pl Reply,

regards,
aamir

推荐答案


您去了:
如何在网格视图中动态创建模板列 [ ^ ]
如何在网格视图中动态创建模板列 [ ^ ]
http://10stupidthings.wordpress.com/2007/07/18/gridview-and -dynamic-controls/ [ ^ ]
http://www.aspnet-answers.com/microsoft/ASP-NET-Web- Controls/31622106/dynamic-gridview-columns.aspx [
Hi,
Here you go:
How to create template columns dynamically in a grid view[^]
How to create template columns dynamically in a grid view[^]
http://10stupidthings.wordpress.com/2007/07/18/gridview-and-dynamic-controls/[^]
http://www.aspnet-answers.com/microsoft/ASP-NET-Web-Controls/31622106/dynamic-gridview-columns.aspx[^]

This may help you.
All the best.
--Amit


这篇关于动态创建下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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