将组合框选择到其他组合框的选择在DatagridView中 [英] Combobox Selection w.r.t to the selection of other combobox Inside a DatagridView

查看:55
本文介绍了将组合框选择到其他组合框的选择在DatagridView中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个datagridview,里面有两列.
一个用于国家,另一个用于包含
的组合框 状态.
我想要选择国家
下一个组合框应过滤状态
根据国家/地区选择.

如何实现这一目标.

如何在Datagridview内部触发Combobox的SelectedIndex更改事件.
Assist

I have a datagridview having two columns Inside it.
One is for Country and another Combobox containing
States.
I want that with Selection of Country
the next combobox should filter the States
based on Selection of country.

How to achieve this.

How to fire the SelectedIndex change event of Combobox inside the Datagridview.
Assist

推荐答案

您正在寻找的是GridViews中的级联下拉菜单-
http://www.softinsight.com/bnoyes/2005/12/01/AddingADropDownListComboBoxColumnOfLookupValuesInADataGridView.aspx [ ^ ]
http://social.msdn.microsoft.com/论坛/en-US/winforms/thread/e7746ddf-3294-478c-a072-8a2eb83ba20c [
What you are looking for is cascading dropdowns in GridViews -
http://www.softinsight.com/bnoyes/2005/12/01/AddingADropDownListComboBoxColumnOfLookupValuesInADataGridView.aspx[^]
http://social.msdn.microsoft.com/forums/en-US/winforms/thread/e7746ddf-3294-478c-a072-8a2eb83ba20c[^]


这篇关于将组合框选择到其他组合框的选择在DatagridView中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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