473,378 Members | 1,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

sincronizing two combo boxes

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
4 1563

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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: vgrssrtrs | last post by:
<html> <head> <script language="JavaScript"> <!-- /* *** Multiple dynamic combo boxes *** by Mirko Elviro, 9 Mar 2005 *** ***Please do not remove this comment
4
by: Steve Chatham | last post by:
I have a page where I have some combo boxes on it. A click on each one spawns another box, and another until each area has been selected, or until they choose to pull all items into a datagrid...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
1
by: Dave | last post by:
Hello all, First I'd like to apologize...This post was meant to be put in my previous post, but I tried many times without success to reply within my previous post. Now here goes... I have a...
2
by: Dave | last post by:
I have 3 tables of information feeding into 4 combo boxes on my main form (DR Form). I have as many list boxes (acting as text boxes) as there are fields in each one of the 3 tables. Once...
2
by: someshbakliwal | last post by:
Hi, I have created some autopopulating combo boxes on my HTML page (script- Javascript). so these combo boxes are autopopulated with choices made in previous combo boxes. The problem I am facing is...
3
by: dblack64 | last post by:
I am working in Access 2007. I have a form named Master Terms List that contains 4 bound text boxes and 7 cascading combo boxes. The bound text boxes have data sources from a table named Termslist. ...
1
by: Yousaf Shah | last post by:
Hello everybody Thanks to Mr Lysander who guided me in building my data base. I have tried to synchronize two combo boxes named “Province” and “City” by method provided in Access Help so that I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.