如何根据来自另一个组合框的选定值在组合框中显示值 [英] how to display a value in a combobox depending on the selected value from another combobox

查看:81
本文介绍了如何根据来自另一个组合框的选定值在组合框中显示值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在组合框中显示一个值,该值只能在网格编辑命令中读取。该值取决于另一个组合框的选定值。

我通过使用枚举来做这样的事情,但它不起作用?

I would like to display a value in a combo box which is read only on grid edit command. The value depends on the selected value of another combo box.
I am doing something like this by using enum, but it is not working?

if (cmbIncidentOutcome.SelectedValue.Split(SysXConsts.HYPHEN)[SysXConsts.ONE].Equals(IncidentOutComeContext.SUPPLIERNOTICE.GetStringValue()))
                   {
                      
                       cmbIncidentStatus.ClearSelection();
                       cmbIncidentStatus.SelectedValue = IncidentStatusContext.INCIDENTCLOSED.GetStringValue();
                   }

推荐答案

查看

在ASP.NET GridView中实现级联DropDownList [ ^ ]

如何使用asp.net在gridview中实现级联下拉列表 [ ^ ]

在GridView中使用数据库示例的Ajax Cascading DropDownList [ ^ ]



更多资源<小时EF =http://www.google.co.in/search?q=Cascading+Dropdown&oq=Cascading+Dropdown&sugexp=chrome,mod=10&sourceid=chrome&ie=UTF-8#hl=en& ; sugexp = LES%3Bpchwac&安培; gs_rn = 1&安培; gs_ri = SERP&安培; PQ =级联%20dropdown%20英寸%20asp.net&安培; CP = 23安培; gs_id = G&安培; XHR = T&安培; q =级联+下拉+在+ gridview的&安培; PF = p&安培; TBO = d&安培; sclient = PSY-AB&安培; OQ =级联+下拉+在+ G&安培; gs_l =安培; PBX = 1&安培; BAV = on.2,or.r_gc.r_pw.r_qf&安培; BVM = BV .1355534169,d.bmk& fp = aaf6447fe4e1119c& bpcl = 40096503& biw = 1366& bih = 653>此处 [ ^ ]
Check out
Implementing Cascading DropDownList in ASP.NET GridView[^]
how to implement cascading dropdownlist in gridview using asp.net[^]
Ajax Cascading DropDownList With Database Example in GridView[^]

More resources here[^]


请关注链接:



http: //webtekspace.blogspot.in/2012/11/fill-dropdownlist-from-another.html [ ^ ]

谢谢
Please follow the link:

http://webtekspace.blogspot.in/2012/11/fill-dropdownlist-from-another.html[^]
Thanks


这篇关于如何根据来自另一个组合框的选定值在组合框中显示值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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