Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Populating a combo box based on selection in another combo box

Posted on 2010-08-28
7
Medium Priority
?
401 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 33550313
0
 

Author Comment

by:Jeenyusx10
ID: 33550360
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 70

Expert Comment

by:Éric Moreau
ID: 33550385
the relation has to exist in your dataset as well. the second option is reliable.
0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 

Author Comment

by:Jeenyusx10
ID: 33550400
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 70

Expert Comment

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

Author Comment

by:Jeenyusx10
ID: 33550441
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 70

Expert Comment

by:Éric Moreau
ID: 33550481
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

688 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