[SOLVED] to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !
Posted: Tue Jul 19, 2016 3:19 am
Dear JS-Support,
We have to unselect combox items programattically:
to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !
instead: allways the first element (item) selected in the UI.
I think it is a bug.
Is there any workaround to this problem?
Backgound info: we fetch a list of items to combobox ( by fill it with .Items.Add(item) ),
and we need it to be unselected at the very first time - as there is no default or privileged item in the list.
Thanks for your kind reply,
Best Regards,
Péter
We have to unselect combox items programattically:
to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !
instead: allways the first element (item) selected in the UI.
I think it is a bug.
Is there any workaround to this problem?
Backgound info: we fetch a list of items to combobox ( by fill it with .Items.Add(item) ),
and we need it to be unselected at the very first time - as there is no default or privileged item in the list.
Thanks for your kind reply,
Best Regards,
Péter