Wierd problem with ComboBox

B

BillG

I have 3 combo boxes on a win form. I have set the DisplayMember,
ValueMember and DataSource correctly for all 3. When I go to retrieve the
SelectedValue of all 3, 2 of them show the value selected while the third
shows the object that is being stored in the combo box. If I examine the
values in the immediate window, I see the proper selected value for the 2
combo boxes while the selected value for the third box is all the object
properties. Has anyone ever seen this before? I have even tried deleting
and recreating the combo box. I have examined and reexaminded my code for
assigning the properties of the combo boxes and they are the same for all 3
combo boxes.

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top