C
Crazy Cat
I am using a data-bound combobox with dropdownstyle set to
dropdownlist. Teh combobox is bound to a bindingsource which is in turn
bound to a table in my database. The table has only 4 rows and I am
using it to display geographical regions - Northeast, Southeast, West,
and Central. In the bindingsource AddNew is set to false.
Whenever I select an item from the combobox I find that the position in
the dropdown list is replaced by the value that was displayed prior to
making the new selection. For example when I start the application and
view the dropdown list I see the following
West
Central
Southeast
Northwest
with West being initially displayed in the textbox. If I select
Southeast the list changes to the following
Southeast
Central
Southeast
Northwest
and Southeast is displayed in the textbox. I can no longer select West
because it is no longer in the dropdown list !!!!
This seems like a bug to me -- or is that how the combobox is supposed
to work? I want my list to be immutable.
What am I doing wrong?
Thanks,
Crazy
dropdownlist. Teh combobox is bound to a bindingsource which is in turn
bound to a table in my database. The table has only 4 rows and I am
using it to display geographical regions - Northeast, Southeast, West,
and Central. In the bindingsource AddNew is set to false.
Whenever I select an item from the combobox I find that the position in
the dropdown list is replaced by the value that was displayed prior to
making the new selection. For example when I start the application and
view the dropdown list I see the following
West
Central
Southeast
Northwest
with West being initially displayed in the textbox. If I select
Southeast the list changes to the following
Southeast
Central
Southeast
Northwest
and Southeast is displayed in the textbox. I can no longer select West
because it is no longer in the dropdown list !!!!
This seems like a bug to me -- or is that how the combobox is supposed
to work? I want my list to be immutable.
What am I doing wrong?
Thanks,
Crazy