N
~~~ .NET Ed ~~~
Hi,
I have a question regarding events in a composite web control. In
windows forms when I programmatically set the SelectedIndex property of a
comboBox (for example) I seem to remember that the SelectedIndexChanged
event is automatically fired (unless my mind is playing tricks on me). Well,
in my custom web control I set the SelectedIndex property of the sub-control
but I don't see the event being fired. It only gets fired when the user
actually selects it on the web form but not when I do it programmatically.
Now, is there anything I can do beside actually programmatically calling
them? My idea was that I would set the SelectedIndex on the first (top
level) and that it automatically would fire the selectedIndexChanged so that
it then propagates to the other, etc. but that is not happening.
Ideas?
Thx,
Emil
I have a question regarding events in a composite web control. In
windows forms when I programmatically set the SelectedIndex property of a
comboBox (for example) I seem to remember that the SelectedIndexChanged
event is automatically fired (unless my mind is playing tricks on me). Well,
in my custom web control I set the SelectedIndex property of the sub-control
but I don't see the event being fired. It only gets fired when the user
actually selects it on the web form but not when I do it programmatically.
Now, is there anything I can do beside actually programmatically calling
them? My idea was that I would set the SelectedIndex on the first (top
level) and that it automatically would fire the selectedIndexChanged so that
it then propagates to the other, etc. but that is not happening.
Ideas?
Thx,
Emil