sincronizing two combo boxes

U

User

Hi people,

Excuse if my question is silly, but...

i have 2 combo boxes in my project
they are binded to fields from same table...
one is binded do Code field and another to Description field

i want to sincronize both...

if i change Code combo, the Description combo shows text of description on
it
and if a change description combo scrolling, the other combo (Cod combo)
show the code associated...

any clues?

thanks
 
I

Ignacio Machin ( .NET/ C# MVP )

Hi people,

Excuse if my question is silly, but...

i have 2 combo boxes in my project
they are binded to fields from same table...
one is binded do Code field and another to Description field

i want to sincronize both...

if i change Code combo, the Description combo shows text of description on
it
and if a change description combo scrolling, the other combo (Cod combo)
show the code associated...

any clues?

thanks

Hi,

You can ue the SelectedValueChanged on each combo and update the
other.
You have to be carefull though of not entering in an infinite loop
 
U

User

thanks ...


Hi,

You can ue the SelectedValueChanged on each combo and update the
other.
You have to be carefull though of not entering in an infinite loop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top