Re: DataBinding and Combo Boxes
- From: "Steven Nagy" <learndotnet@xxxxxxxxxxx>
- Date: 28 Mar 2006 19:28:59 -0800
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.
.
- Prev by Date: Re: select all text when textbox1 is clicked
- Next by Date: Re: Problems with TCP Listener
- Previous by thread: Getting the paper size for a custom printer form
- Next by thread: Re: DataBinding and Combo Boxes
- Index(es):