添加动态下拉列表&数据网格中的文本框 [英] add dynamically dropdownlist & textbox in a datagrid

查看:70
本文介绍了添加动态下拉列表&数据网格中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨......



i希望在带有下拉列表和文本框的数据网格中动态创建新行。

Hi...

i want to create a new row dynamically in a datagrid with dropdownlists & textbox.

推荐答案





查看这些链接。

向GridView添加动态控件 [ ^ ]

动态创建GridView的TemplateField [ ^ ]

创建DataGrid中动态模板列 [ ^ ]



在文章中,显示了示例,标签,链接按钮等。您可以尝试添加下拉列表和文本框。另外,在其中一篇文章中,作者使用过gridview的DataBinding事件。所以你也用这个事件来绑定动态添加的下拉列表和文本框。



希望它有所帮助。
Hi,

check these links.
Add Dynamically Controls to GridView [^]
Dynamically creating TemplateField for GridView[^]
Create Template column dynamically in DataGrid[^]

In the articles, it was shown, examples with label, link button etc. similarly, you can try by adding dropdown list and textbox. also, in one of the articles, author has used, DataBinding event of the gridview. so you also use that event for binding the dynamically added dropdown list and textbox.

hope it helps.


这篇关于添加动态下拉列表&数据网格中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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