hammertounge
Programmer
I am working with a human resource database. There are three tables involved: employees, emergency contacts, and ratehistory. The primary key empid in the employee table is also a foreign key in the emergencycontacts and ratehistory tables.
My form has a list box bound to the employee table with the display member being the last name. I also have a series of text boxes listing the employee information. These textboxes are also bound to the employee table.
In the XML designer I created two relationships between the employee table and the emergencycontacts and ratehistory tables.
I created two datagrids on the form and bound them to the employee table and set the display member to the relationship between the tables.
Things are not working very well. Should I be binding to a dataview object instead of the table itself? Since all the bindings are done on the dataset.employee table I thought that the currency manager would handle it.
I could write all this in code but I thought the bindings would be quicker, any suggestions?
Thanks in advance.
My form has a list box bound to the employee table with the display member being the last name. I also have a series of text boxes listing the employee information. These textboxes are also bound to the employee table.
In the XML designer I created two relationships between the employee table and the emergencycontacts and ratehistory tables.
I created two datagrids on the form and bound them to the employee table and set the display member to the relationship between the tables.
Things are not working very well. Should I be binding to a dataview object instead of the table itself? Since all the bindings are done on the dataset.employee table I thought that the currency manager would handle it.
I could write all this in code but I thought the bindings would be quicker, any suggestions?
Thanks in advance.