Alex,
Thanks for your response and suggestions but this does not help because the
selectedindexchanged event is not fired when data is being loaded to the
comboBox but it is fired when you click on the combobox for the firsttime.
For now I am not loading the combobox by setting the datasource property, i
am using items.add().
I tested out your solution and it did not work.
Thanks
Neelima
"Alex Feinman [MVP]<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Regardless of the control behavior, it is a good idea to disable event
> handlers when the control is being populated. I typically use a boolean
> flag, which I set before changing the control's datasource and clear
> afterwards. I check this flag then inside event handlers.
>
> PS I clearly remember someone complaining of this issue and someone else
> claiming that it was fixed in one of the SPs. But after checking the
> fixlists for both service packs I can't find the reference to this
problem.
> In any case make sure you are using SP1 and not RTM
>
> "Neelima Godugu" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> > I have noticed that SelectedIndexChanged event is fired twice if the
> > ComboBox is filled up by specifying datasource. Otherwise if you fill it
> up
> > using Items.Add this does not happen. Is this a known bug? Is there a
work
> > around? I am using VS.NET 2003(RTM).
> > Thanks
> > Neelima
> >
> >
>
>
|