如何在datagridview中根据combobox1的选择绑定combobox2 [英] How to bind combobox2 based on selection of combobox1 in datagridview

查看:73
本文介绍了如何在datagridview中根据combobox1的选择绑定combobox2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DataGridView(combobox1,combobox2,EmpName,Dept)

combobox1填充了一些值a,b,c



当选择了combobox1时然后用x,y,z值提交的combobox2



我已经尝试了很多但没有适当的解决方案。可以在C#windows Application中使用。

DataGridView (combobox1,combobox2,EmpName,Dept)
combobox1 filled some value a,b,c

when combobox1 a selected then combobox2 filed with x,y,z values

I have tried a lot but no proper solution. Is possible in C# windows Application.

推荐答案

尝试级联下拉菜单 -

http://ydaira.blogspot.in/2010/12/cascading-datagridview-combobox_14.html [ ^ ]

http://bytesofcode.hubpages.com/hub/Cascading-ComboBox-in-C-SharpNet [ ^ ]
Try cascading dropdowns -
http://ydaira.blogspot.in/2010/12/cascading-datagridview-combobox_14.html[^]
http://bytesofcode.hubpages.com/hub/Cascading-ComboBox-in-C-SharpNet[^]


这篇关于如何在datagridview中根据combobox1的选择绑定combobox2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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