Link to home
Start Free TrialLog in
Avatar of Corey Scheich
Corey ScheichFlag for United States of America

asked on

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
Avatar of RonaldBiemans
RonaldBiemans

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 ?
Avatar of Corey Scheich

ASKER

I suppose I will check.  That sure would make sence.
ASKER CERTIFIED SOLUTION
Avatar of RonaldBiemans
RonaldBiemans

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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