I have a databound drop-down-list style combobox that is databound to a
dataset. Initially there are no items in the dataset/list. But when I
later do a Fill on the dataset when data is present. When this happens, one
item is added to the listbox and that item becomes selected. However, the
SelectedIndexChanged event is not getting called. If I select the item
again in the GUI, then the event does get called. Why isn't it getting
called initially?
I tried creating a basic combobox that is not databound and tried adding a
single item to that list in code. The event gets called correctly in this
case. So it apparently is just when the item is generated from the data
binding that the event isn't called.