Home All Groups Group Topic Archive Search About

What triggered this event?

Author
15 Dec 2006 10:41 PM
Daniel Manes
Something is causing my DataGridView to raise a SelectionChanged event,
but I can't figure out what.

It's definitely not a user action, and it's not something I programmed
directly. It's obviously some side effect of something else I'm doing
with the DataGridView, but I can't figure out what.

I tried putting a break point in the SelectionChanged event handler,
and pressing the "step-out" button, but it didn't seem to take me
anywhere useful.

I'm stuck. Please advise.

Thanks,

-Dan

Author
18 Dec 2006 12:16 PM
Ciaran O''Donnell
inspect the value of sender in the event handler. It might tell you something
handy, otherwise, post the code that is running when this event fires.

Show quoteHide quote
"Daniel Manes" wrote:

> Something is causing my DataGridView to raise a SelectionChanged event,
> but I can't figure out what.
>
> It's definitely not a user action, and it's not something I programmed
> directly. It's obviously some side effect of something else I'm doing
> with the DataGridView, but I can't figure out what.
>
> I tried putting a break point in the SelectionChanged event handler,
> and pressing the "step-out" button, but it didn't seem to take me
> anywhere useful.
>
> I'm stuck. Please advise.
>
> Thanks,
>
> -Dan
>
>