与数据网格中的两个组合框的关系 [英] relation with two comboboxes in a datagrid
问题描述
你好,
我是编程和论坛的新手,所以请原谅我可以说的愚蠢事情的进展。
所以这里是:
我想创建一个包含工作中使用的设备列表的表单,并且我在vb 2010中使用它来获取带有列的数据网格视图(两个组合框[使用的设备] ] / [功能]和两个文本框[数量] / [Obseravtions])。
问题是两者应该连接组合框,由第二次提出 - 下面的列表取决于dgv中第一个组合框的选择。
现在我我试了大约三个小时,但我不能。
提前感谢您的帮助。
hello,
I'm new in programming and on the forum, so excuse me for advances on the stupid things I could say.
So here it is:
I want to create a form with a list of equipment used at work, and I use it for, in vb 2010 a datagridview with columns (two combobox [Equipment used] / [Features] and two textbox [Quantity] / [Obseravtions]).
The problem is that the two should be linked combobox, proposed by the second drop-down list depends on the choice focused on the first combobox in the dgv.
and now I'm trying for about three hours, but I can not.
Thank you in advance for your help.
推荐答案
这些帖子的解决方案是否有帮助?
基于另一个组合框架在datgrid中过滤组合框vb.net [ ^ ]
http://www.vbforums.com/showthread.php?658360-RESOLVED-ComboBox-dependent-on-another-ComboBox [ ^ ]
http: //stackoverflow.com/questions/9442833/how-can-one-comboboxs-items-be-determined-by-another [ ^ ]
Do the solutions at these posts help?
Filter combobox in a datgrid based on another combobox vb.net[^]
http://www.vbforums.com/showthread.php?658360-RESOLVED-ComboBox-dependent-on-another-ComboBox[^]
http://stackoverflow.com/questions/9442833/how-can-one-comboboxs-items-be-determined-by-another[^]
一个建议,不要试图一次做太多,试着接近这个订单中的问题
- 首先将项目手动插入单个组合框(您可能需要谷歌获取有关如何操作的文档)
- 然后担心关于根据另一个的值改变组合框的内容。
- 最后,将这些组合框放入datagridview。
One suggestion, don't try to do too much at once, try approaching the problem in this order
- do the manual insertion of items into a single combobox first (you may need to google for the documentation on how to do that)
- then worry about changing the content of a combobox based on the value of another one.
-Finally, put those comboboxes into a datagridview.
这篇关于与数据网格中的两个组合框的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!