Combobox Relational C # BD Access

1

I'm building a C # application with Access database.

I have two tables one of CIDADE and another one of ESTADOS .

What I need is when I select in combobox1 a state, combobox2 loads only cities that match the state.

    
asked by anonymous 01.09.2014 / 19:26

1 answer

0

Without you passing a snippet of code it gets a bit tricky, but I'll try to answer it in a way that you can understand easily, come on ...

Your combobox1 has an event that runs every time you select a value (I'm not sure if you're using Windows Forms or WPF so I can not tell you the name of the event for sure). In this event you will program the routine that will load the cities in their second combobox ( combobox2 )

Here's a similar question, maybe it will help you: link

You can also search for "Cascading combobox on c #" on Google, you will surely find many examples and tutorials.

Hugs.

    
01.09.2014 / 21:17