Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

Populating a combo box based on selection in another combo box

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
Jeenyusx10
Asked:
Jeenyusx10
  • 4
  • 3
1 Solution
 
Jeenyusx10Author Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
the relation has to exist in your dataset as well. the second option is reliable.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Jeenyusx10Author Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
isn't the downloadable demo that goes with the article enough? you already hve everything.
0
 
Jeenyusx10Author Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now