Well, it finally works! I moved the table I was having
problems with into the same dataset object as it's parent
table and used the code below as suggested by Mikael:
cboNewCarryover.DataBindings.Add
("SelectedValue",dsStatsSelect.Tables
("tblPatientStats")), "PatientStatus")
Probably obvious to everyone else I should have been using
the same dataset! Oh well, live and learn! Thanks!
>-----Original Message-----
>I'm using complex databinding with a combo box. When a
>user retrieves a record from the database I want to be
>able to set the valuemember to the value of the data
>retrieved and have the corresponding displaymember
>display. My controls using simple databinding, like text
>boxes and single column combo boxes, is working great
>using the code below. How do I do it with complex
>databinding?
>
>cboNewCarryover.DataBindings.Add
>
("Text",dsStatsSelect.Tables"tblPatientStats"), "PatientSta
>tus")
>
>.
>
|