I know this seems like a ridiculous question but...how do I get a display and a valueMember populated in a combobox using a datareader (ODP)? I can populate a simple list of values into the combobox by looping through the datareader and using the "items.add" method for the portion of the combobox that displays the text I want displayed to the user. But how do I get the valueMember portion of the combobox populated?
For example, I have a simple lookup table with a "code" and a "description" column. I want to display the "description" value but I want to return the "code" value when the user makes a selection.
I tried using datasets but I've been having problems. They won't show up in the properties sheet after I create the dataset so I've resorted to simply writing my own queries and populating the comboboxes myself manually.
Thanks,
Greg
For example, I have a simple lookup table with a "code" and a "description" column. I want to display the "description" value but I want to return the "code" value when the user makes a selection.
I tried using datasets but I've been having problems. They won't show up in the properties sheet after I create the dataset so I've resorted to simply writing my own queries and populating the comboboxes myself manually.
Thanks,
Greg