我如何...将dropdownlist与其他下拉列表绑定。 [英] How do I...bind dropdownlist with otherdropdown list.

查看:82
本文介绍了我如何...将dropdownlist与其他下拉列表绑定。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在使用c#处理telerik Winform。



我有3个下拉列表,命名为Client Dropdownlist,UserdropdownList,Lawyer DropDownlist。



这里当我从Client Droplsit中选择任何项目时,则必须根据userdropdownList和LawyerDropDownlist进行更改。



我可以将律师名单视为完全,但我想向选定的客户展示律师。

我应该如何编写代码。

我的代码如下。



Hello,

I am working on telerik Winform with c#.

I have 3 dropdownlist, named as Client Dropdownlist, UserdropdownList,Lawyer DropDownlist.

Here When I select any item from Client Droplsit then according to userdropdownList and LawyerDropDownlist has to be changed.

I can get the List of Lawyer as Fully but i want to show the lawyer as for selected Client.
How should i write code.
My Code as Below.

LawyerDropdownlist.DataSource = Lawyers;
           LawyerDropdownlist.DisplayMember = "LawyerName";
           LawyerDropdownlist.ValueMember = "LawyerId";









这里律师向我展示律师的完整名单,但我只想选择。

帮助



谢谢





here Lawyers show me the full list of Lawyer but i want only selected.
Help

thanks

推荐答案

通过这个你必须绑定SelectedIndexChanged事件


这篇关于我如何...将dropdownlist与其他下拉列表绑定。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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