This question is locked. New answers and comments are not allowed.
Hello
i got this situation:
i have a textbox and a combo, i filled the combo in the form_load event
the combo properties:
DisplayMember = "Test1"
ValueMember = "Test2"
i want when i choose a item in the combo the textbox get the SelectedValue but
the problem with SelectedIndexChanged or SelectedValueChanged event, is this events fires even when i filled the combo
there are any event like ItemClick or else that only fires when you click on an item not every time you filled the combo?
if you have a query under this events, the query will be executed even if you don't want to
and this will affect the performance of your application because if you need to update the combo values often
the event will fire again and again
any help
thanks
P.S.
Sorry about my english, is not good enough
i got this situation:
i have a textbox and a combo, i filled the combo in the form_load event
the combo properties:
DisplayMember = "Test1"
ValueMember = "Test2"
i want when i choose a item in the combo the textbox get the SelectedValue but
the problem with SelectedIndexChanged or SelectedValueChanged event, is this events fires even when i filled the combo
there are any event like ItemClick or else that only fires when you click on an item not every time you filled the combo?
if you have a query under this events, the query will be executed even if you don't want to
and this will affect the performance of your application because if you need to update the combo values often
the event will fire again and again
any help
thanks
P.S.
Sorry about my english, is not good enough