Multy ComboBox关系 [英] Multy ComboBox Relations

查看:87
本文介绍了Multy ComboBox关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个数据表:

例子

Hi to All,

I has a DataTable:

example

Col_1 Col_2 Col_3

  1     1     2
  1     1     3
  1     2     3
  1     3     1
  1     3     2



我有3个ComboBox
combo_1.DadaSource是Dt.Col_1
,combo_2.DadaSource是Dt.Col_2
而且combo_3.DadaSource是Dt.Col_3.

当第一个组合选择(例如值1)时,第二个组合显示列表必须对此值进行过滤并显示其不同的值(1、2、3),而不是全部(1、2、3、3)


选择后无需更改Combo的数据源即可解决问题.

感谢和问候



and i has 3 ComboBox
combo_1.DadaSource is Dt.Col_1
,combo_2.DadaSource is Dt.Col_2
And combo_3.DadaSource is Dt.Col_3.

When first combo selectdet (for example value 1) second combo display list must filtering for this value and showing his distinct values (1, 2, 3) not all (1,1,2,3,3)


solve a problem without Combo''s DataSource change after select.

Thanks and Regards

推荐答案

aleko_l写道:
aleko_l wrote:

无需组合即可解决问题"选择后更改数据源.

solve a problem without Combo''s DataSource change after select.



为什么不使用工具解决问题就尝试解决问题?另一种方法是手动更改组合框中的数据范围.



Why would you try to solve it without using the tool to solve it ? The other way is to manually change the range of data in the combo box.


数据库中的数据在每次Combo SelectChange之后向数据库发送查询都是错误的.

将不得不提出一种替代方法:confused:
data are in the database would be wrong to send queries to the database after every Combo SelectChange.

will have to come up with an alternative method :confused:


这篇关于Multy ComboBox关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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