获取与先前组合框相关的特定县 [英] Get specific counties that are related to previous combobox

查看:74
本文介绍了获取与先前组合框相关的特定县的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个日志记录项目,作为输入,我有一个显示状态的组合框。然后我有一个显示县的组合框。状态组合框工作正常,县组合框显示所有县。我想限制县只显示具有与州相同的州ID的县。状态id在状态表中是主要的,状态id也在县表中。共有3077个县,所以你可以看到这可能是一个问题。



我尝试了什么:



相当新的C#所以不知道一个起点来解决这个问题会有所帮助。

解决方案

这个问题已被逐字逐句地提出来成千上万次。



以下列出了潜在的解决方案: Search - CodeProject [ ^ ]

I have a logging project and as inputs I have a combo box that shows the states. then I have a combo box that shows counties. The state combo box works fine, the county combo box shows ALL counties. I want to limit the county to show only county that has the same state ID as the state does. The state id is primary in state table, state id is also in county table. There are 3077 total counties so you can see this could be a problem.

What I have tried:

Fairly new to C# so have no idea a starting point to fix this would be helpful.

解决方案

This question has been asked literally thousands of times.

Here is a list of potential solutions: Search - CodeProject[^]


这篇关于获取与先前组合框相关的特定县的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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