Re: DataBinding and Combo Boxes

Tech-Archive recommends: Speed Up your PC by fixing your registry



I'm sorry but I don't quite understand the question. Could you reword
it please, and I will do my best to answer it.

(for standard binding to a combobox, known as "complex binding" for
some bizarre reason...)

mycombo.datasource = myDataTable ' or, myDataset.Tables(0) or
myDataset.Tables("tablename")
mycombo.DisplayMember = "DisplayField" ' whichever column you want
to display in the combobox
mycombo.ValueMember = "IDField" ' whichever column is the
uniquely identifying column in a row.

.