在网格视图中禁用级联下拉列表选择已更改的事件 [英] Disable Cascading drop down in grid view selected changed event
本文介绍了在网格视图中禁用级联下拉列表选择已更改的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何禁用ajax级联DropDown列表?我想在gridview的编辑模式下禁用级联下拉菜单以禁止用户更改下拉值...
我会在网格视图的选定索引更改事件中添加此功能
解决方案
试试这个...
dropDownList.Enabled = false;
< asp:dropdownlist id =dropDownListrunat =serverautopostback =truexmlns:asp =#unknown >
How to disable the ajax cascading DropDown list? I want to disable the cascading drop down in edit mode of gridview to disallow users to change the drop down values...
I would add this functionality in selected index changed event of grid view
解决方案
try this...
dropDownList.Enabled = false;
<asp:dropdownlist id="dropDownList" runat="server" autopostback="true" xmlns:asp="#unknown">
这篇关于在网格视图中禁用级联下拉列表选择已更改的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文