A
Alec MacLean
Hi everyone,
I have a ComboBox that when changed, calls a method to change the content of
a ListBox.
I'm also using the Listbox's SelectedIndexChanged event to change other
control values on the form.
(It's a Company -> People -> Personal Data relationship)
When I bind my datasource to the ListBox, I find that the
SelectedIndexChanged event fires three times.
(I am using BeginUpdate / EndUpdate around the databinding statements.)
This multiple event firing causes the side effect of a form-flicker as the
last set of controls get cleared and set.
Is this normal behaviour for the ListBox when using databinding?
I do want the event to fire, but only after the databinding has completed
and only the one time.
Any help is appreciated.
Alec
I have a ComboBox that when changed, calls a method to change the content of
a ListBox.
I'm also using the Listbox's SelectedIndexChanged event to change other
control values on the form.
(It's a Company -> People -> Personal Data relationship)
When I bind my datasource to the ListBox, I find that the
SelectedIndexChanged event fires three times.
(I am using BeginUpdate / EndUpdate around the databinding statements.)
This multiple event firing causes the side effect of a form-flicker as the
last set of controls get cleared and set.
Is this normal behaviour for the ListBox when using databinding?
I do want the event to fire, but only after the databinding has completed
and only the one time.
Any help is appreciated.
Alec