By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,491 Members | 3,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,491 IT Pros & Developers. It's quick & easy.

sincronizing two combo boxes

P: n/a
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
Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a

I am going to assume a winforms application, since you posted in this
newsgroup (not asp.net) and you don't specify winforms or asp.net.

...

http://msdn.microsoft.com/en-us/library/ms404299.aspx
and/or
http://www.akadia.com/services/dotnet_databinding.html

Keywords
Binding
DataBindings.Add
BindingContext

"User" <a@b.comwrote in message
news:eU**************@TK2MSFTNGP05.phx.gbl...
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

Jun 27 '08 #2

P: n/a
On Jun 25, 10:53*am, "User" <a...@b.comwrote:
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
Jun 27 '08 #3

P: n/a
you are right, is winforms...

Thanks a lot....
I am going to assume a winforms application, since you posted in this
newsgroup (not asp.net) and you don't specify winforms or asp.net.

..

http://msdn.microsoft.com/en-us/library/ms404299.aspx
and/or
http://www.akadia.com/services/dotnet_databinding.html

Keywords
Binding
DataBindings.Add
BindingContext

"User" <a@b.comwrote in message
news:eU**************@TK2MSFTNGP05.phx.gbl...
>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


Jun 27 '08 #4

P: n/a
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
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.