P
PeterZ
SCENARIO
--------
I have a Win forms project (C#), two comboboxes databound to two
tables linked with a relation (parent child). Selecting a value from
Combo1 filters out the approprate values in combo2 - no rocket sience
here - all works fine.
I capture the SelectedIndexChanged event of Combo2 to perform some
validation on the form, ie. enable/disable some buttons, etc.. All
this works fine.... BUT.....
THE PROBLEM
-----------
The abovementioned event is only triggered when Combo2 is interected
with physically by the user (ie. mouse click). If however the values
in Combo2 are refreshed as a result of the user selecting a different
item in Combo1, the SelectedIndexChanged event is not triggered on
Combo2! Why the hell not?
FAILED ATTEMPTS TO GET AROUND THE PROBLEM
-----------------------------------------
Tried capturing the SelectedValueChanged, TextChanged,
CollectionChanged events on Combo2 but none are triggered.
Tried capturing the SelectedIndexChanged event on Combo1 (parent), but
by doing this the databindings haven't had time to refresh the values
in Combo2 (child), they are qued after the event I think. So I can't
run my validation routine with 'old' values in Combo2 which are out of
synch with Combo1.
I can't supply any code as the DataSet/DataAdaper/DataRelation have
all been cofigured through the IDE.
Any ideas from ADO gurus?
Surely someone has come accross this before?
Cheers,
Peter Z
--------
I have a Win forms project (C#), two comboboxes databound to two
tables linked with a relation (parent child). Selecting a value from
Combo1 filters out the approprate values in combo2 - no rocket sience
here - all works fine.
I capture the SelectedIndexChanged event of Combo2 to perform some
validation on the form, ie. enable/disable some buttons, etc.. All
this works fine.... BUT.....
THE PROBLEM
-----------
The abovementioned event is only triggered when Combo2 is interected
with physically by the user (ie. mouse click). If however the values
in Combo2 are refreshed as a result of the user selecting a different
item in Combo1, the SelectedIndexChanged event is not triggered on
Combo2! Why the hell not?
FAILED ATTEMPTS TO GET AROUND THE PROBLEM
-----------------------------------------
Tried capturing the SelectedValueChanged, TextChanged,
CollectionChanged events on Combo2 but none are triggered.
Tried capturing the SelectedIndexChanged event on Combo1 (parent), but
by doing this the databindings haven't had time to refresh the values
in Combo2 (child), they are qued after the event I think. So I can't
run my validation routine with 'old' values in Combo2 which are out of
synch with Combo1.
I can't supply any code as the DataSet/DataAdaper/DataRelation have
all been cofigured through the IDE.
Any ideas from ADO gurus?
Surely someone has come accross this before?
Cheers,
Peter Z