combobox displayed text not changing when index changed...
Posted on 2009-05-20
In a winforms program, I have a combobox bound to a list of datasource. When I change its selectedindex to 0, everything works as expected, except the text displayed in the entry field remains blank. I can't find anything in the code to account for this:
frm.ComboBoxForms.SelectedIndex = 0
The debugger shows me the datasource is populated, selectedindex IS 0, and the list does drop down when the combobox is clicked.
frm.comboboxforms.text shows the correct value in the debugger, but selectedtext remains empty. if I try programmatically setting the selectedtext equal to the text, selectedtext remains empty, but text displays doubled!
Is there some property I may be overlooking? This WAS working fine at one time, I can't figure out what's going on. Any help greatly appreciated, this is really slowing down my project big time. Thanks in advance.