I am developing a solution where I will need to go and pull information dynamically from a web service.
When the call is complete, I wish to open the drop down so the user will see all the results. However, I also need to run code in the DropDownOpened event as well, and do NOT need it to fire during this time. (I.e., when the user tells it to open, I need to run some code, but when the code auto opens it, I need something else).
I thought this would be no problem, as I should be able to unsubscribe from the event using the standard -= ????? However, to my surprise, even though I did this, the event still fires. So for example, if I did this:
radMyCombo.DropDownOpened -= new EventHandler(MyEventHandler);
radMyCombo.IsDropDownOpen = true;
radMyCombo.DropDownOpened += new EventHandler(MyEventHandler);
I expected this to work, but it did not. What am I missing????
When the call is complete, I wish to open the drop down so the user will see all the results. However, I also need to run code in the DropDownOpened event as well, and do NOT need it to fire during this time. (I.e., when the user tells it to open, I need to run some code, but when the code auto opens it, I need something else).
I thought this would be no problem, as I should be able to unsubscribe from the event using the standard -= ????? However, to my surprise, even though I did this, the event still fires. So for example, if I did this:
radMyCombo.DropDownOpened -= new EventHandler(MyEventHandler);
radMyCombo.IsDropDownOpen = true;
radMyCombo.DropDownOpened += new EventHandler(MyEventHandler);
I expected this to work, but it did not. What am I missing????