Solved

Populating a combo box based on selection in another combo box

Posted on 2010-08-28
7
396 Views
Last Modified: 2013-12-26
I am using a DataSet in Visual Studio. The particular form I am stuck on allows the user to select a Client from a combo box, (which I have successfully bound to data) then the second combo box should be populated with a list of Addresses for the chosen Client.

Also, Is there a difference between using the combo box smart tag "Use Bound Items" and using the properties window to add data bindings?

Also, so far I am not explicitly coding much of this, I have clicked and dragged most. I feel like part of this solution is going to require coding, Im just not sure where to begin
0
Comment
Question by:Jeenyusx10
  • 4
  • 3
7 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
0
 

Author Comment

by:Jeenyusx10
Comment Utility
The third solution is assuming that the data tables are not already related? I am using a relational database..The relationships already exist.

Should I just use the Second option?
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
the relation has to exist in your dataset as well. the second option is reliable.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Jeenyusx10
Comment Utility
I would like to avoid using bound controls completely. Do you have a tutorial on how to use unbound controls?

I.e. Initializing the data set, table adapters, Binding sources....
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
isn't the downloadable demo that goes with the article enough? you already hve everything.
0
 

Author Comment

by:Jeenyusx10
Comment Utility
I don't see the use of table adapters, or table adapter manager...

Also, if viewing the DataSet in the designer, the relationships area already established.. So why do you have to explicitly create the relationship again in code?

Are you using old version of software? I'm using VS 2010
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
I never use the Dataset designers. I hate them. If you replace my dataset with your own (coming from the designer or not), it will work.
I use VS2010 but this article was written a long time ago with an older version but is still current to demonstrate how to bind combo box.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now