Click here to Skip to main content
15,846,346 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one CB that is the states. I have another that is options available. I want to establish a rule that says if you choose a state, the other CB will only populate options available in that state.

Not sure I can do that.

Example: CB 1 = NY
CB2= Metro1

What I have tried:

Worked to build a code to reference but not working.
Updated 8-Mar-22 11:33am
Maciej Los 7-Mar-22 16:03pm    
Can you provide more details about the method you fetch data and bind it to the comboboxes?

Maybe you can use data-binding, see this CodeProject article: A Detailed Data Binding Tutorial[^]
Share this answer
First you will need to know when the combo boxes Selection has changed. Based on the value, change the values of the second combobox.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900