Is it possible to determine whether a SelectIndexChanged event was
caused by a user making a selection or something changing in the
DataSet to which it is connected? I checked e:EventArgs and
sender:Object, but e is empty and I don't see anything helpful in
sender.

In my event handler for SomeCombo_SelectedIndexChanged, I need to be
able to do certain things *only* if it was the user that changed the
selection, not if the event is firing because the connected DataSet
changed.

Thanks!

Re: Simple event question.... by Eric

Eric
Tue Sep 23 13:51:08 CDT 2003

If your talking about a ComboBox...

try using the SelectionChangeCommitted event:
this.cmbAttribute1.SelectionChangeCommitted += new
System.EventHandler(this.attr_Selected)

HTH,
Eric Cadwell
http://www.origincontrols.com


"Mike" <strebormj2003@yahoo.com> wrote in message
news:1ed8abe2.0309231017.5d3d723f@posting.google.com...
> Is it possible to determine whether a SelectIndexChanged event was
> caused by a user making a selection or something changing in the
> DataSet to which it is connected? I checked e:EventArgs and
> sender:Object, but e is empty and I don't see anything helpful in
> sender.
>
> In my event handler for SomeCombo_SelectedIndexChanged, I need to be
> able to do certain things *only* if it was the user that changed the
> selection, not if the event is firing because the connected DataSet
> changed.
>
> Thanks!



Re: Simple event question.... by Kenneth

Kenneth
Tue Sep 23 16:27:26 CDT 2003

Thanks,

So I'll create a custom style column. Would you suggest using the
click/double click events or would any of the other mouse events be better?

Yes, PositionChanged should work. I already use it for retrieving data for
the current record. What I can't figure out is why PositionChanged (or is it
CurrentChanged) fires not once, but several times. But that goes for some
other events as well. Which leads me to one more question about new rows and
the leave event, but I'll post that one seperately

Regards,

Kenneth

"Eric Cadwell" <ecadwell@ns.insight.com> skrev i meddelandet
news:OXzM3lggDHA.1408@tk2msftngp13.phx.gbl...
> If your talking about a ComboBox...
>
> try using the SelectionChangeCommitted event:
> this.cmbAttribute1.SelectionChangeCommitted += new
> System.EventHandler(this.attr_Selected)
>
> HTH,
> Eric Cadwell
> http://www.origincontrols.com
>
>
> "Mike" <strebormj2003@yahoo.com> wrote in message
> news:1ed8abe2.0309231017.5d3d723f@posting.google.com...
> > Is it possible to determine whether a SelectIndexChanged event was
> > caused by a user making a selection or something changing in the
> > DataSet to which it is connected? I checked e:EventArgs and
> > sender:Object, but e is empty and I don't see anything helpful in
> > sender.
> >
> > In my event handler for SomeCombo_SelectedIndexChanged, I need to be
> > able to do certain things *only* if it was the user that changed the
> > selection, not if the event is firing because the connected DataSet
> > changed.
> >
> > Thanks!
>
>



Re: Simple event question.... by Kenneth

Kenneth
Tue Sep 23 16:35:14 CDT 2003

Forget the previous posting. Seletcted the wrong thread.

Kenneth

"Kenneth Bohman" <developer@itinitiative.co.uk> skrev i meddelandet
news:ufJGRmhgDHA.1696@TK2MSFTNGP09.phx.gbl...
> Thanks,
>
> So I'll create a custom style column. Would you suggest using the
> click/double click events or would any of the other mouse events be
better?
>
> Yes, PositionChanged should work. I already use it for retrieving data for
> the current record. What I can't figure out is why PositionChanged (or is
it
> CurrentChanged) fires not once, but several times. But that goes for some
> other events as well. Which leads me to one more question about new rows
and
> the leave event, but I'll post that one seperately
>
> Regards,
>
> Kenneth
>
> "Eric Cadwell" <ecadwell@ns.insight.com> skrev i meddelandet
> news:OXzM3lggDHA.1408@tk2msftngp13.phx.gbl...
> > If your talking about a ComboBox...
> >
> > try using the SelectionChangeCommitted event:
> > this.cmbAttribute1.SelectionChangeCommitted += new
> > System.EventHandler(this.attr_Selected)
> >
> > HTH,
> > Eric Cadwell
> > http://www.origincontrols.com
> >
> >
> > "Mike" <strebormj2003@yahoo.com> wrote in message
> > news:1ed8abe2.0309231017.5d3d723f@posting.google.com...
> > > Is it possible to determine whether a SelectIndexChanged event was
> > > caused by a user making a selection or something changing in the
> > > DataSet to which it is connected? I checked e:EventArgs and
> > > sender:Object, but e is empty and I don't see anything helpful in
> > > sender.
> > >
> > > In my event handler for SomeCombo_SelectedIndexChanged, I need to be
> > > able to do certain things *only* if it was the user that changed the
> > > selection, not if the event is firing because the connected DataSet
> > > changed.
> > >
> > > Thanks!
> >
> >
>
>