本文介绍了Dropdown在gridview控件中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是Sabir,
1.我有一个gridview控件,里面有两个项目templete.
2.我想在网格内下拉菜单的所选更改事件的同一行中向文本框中写入一些值.
谢谢.
Hi This is Sabir,
1.I have a gridview control and inside that i have two item templete.
2.I want to write some value to the text box in the same row of The selected changed event of dropdown inside the grid.
Thanks.
推荐答案
<templatefield>
<itemtemplate>
<asp:dropdownlist id="ddl1" runat="server" onselectedindexchanged="ddl_selectedindexchanged"></dropdownlist>
</itemtemplate>
</templatefield>
protected void ddl_selectedindexchanged(objects as sender,eventargs e)
{
//your code here.
}
添加了用于代码格式的PRE标签-Ankur
Added PRE tags for code formatting - Ankur
这篇关于Dropdown在gridview控件中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!