• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

Binding through Form Designer

Ok I have a Form with a listbox and a DataSet dropped onto it.  In the Form Designer I get the schema of the DataSet which shows the 3 tables, their collumns and their relationships.  How do I DataBind this using the form designer to the listbox.  Under the listbox.DataSource it is showing the Dataset but not the individual tables, how do I specify using formdesigner which table to attach to, because when I simply use the dataset and try to set the DisplayMember or ValueMember I am getting "Invalid callback" or something of the sort.

Any Help is appreciated.

Corey2
0
Corey Scheich
Asked:
Corey Scheich
  • 3
  • 2
1 Solution
 
RonaldBiemansCommented:
That is strange because I just tried it, and the individual tables show up in the datasource property.
Are you sure your dataset isn't corrupt ?
0
 
Corey ScheichDeveloperAuthor Commented:
I suppose I will check.  That sure would make sence.
0
 
RonaldBiemansCommented:
I can reproduce your problem if I add an invalid relationship to the dataset
0
 
Corey ScheichDeveloperAuthor Commented:
That is it.  I tried Playing the form in debug mode and the error I got said "There is already a relationship Named "Jobs"" or something to that affect.  I will have to trouble shoot that.  to see where it is getting doulbed up.

Corey2
0
 
Corey ScheichDeveloperAuthor Commented:
I cleared the error and then was able to Select the DataSource then I was able to select the table and column in the DisplayMember and ValueMember sections.

Thanks

Corey2
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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