PC Review


Reply
Thread Tools Rate Thread

Combo.SelectedIndex Changed Event?

 
 
James Goodman
Guest
Posts: n/a
 
      9th Jun 2005
I am using a combo to select records from a datagrid.

If the user selects an item in the combo with the stylus, the events fires
three times, and the datagrid.selectedindex switches to the correct value,
before reverting to 0 twice.

However, if the user selects an item using the directional button on the
bottom of the pda and scrolls to a record, the event fires once and the
currect record is selected in the grid.


Does this sound like intended behaviour?
Why would it fire three times when they select something using the stylus,
as opposed to once when the select using the scroll button?

--
Cheers,

James Goodman


 
Reply With Quote
 
 
 
 
Sergey Bogdanov
Guest
Posts: n/a
 
      10th Jun 2005
I have never encountered with such behaviour. I suppose that the problem
somewhere else:- can you provide small reproducible example?


--
Sergey Bogdanov
http://www.sergeybogdanov.com


James Goodman wrote:
> I am using a combo to select records from a datagrid.
>
> If the user selects an item in the combo with the stylus, the events fires
> three times, and the datagrid.selectedindex switches to the correct value,
> before reverting to 0 twice.
>
> However, if the user selects an item using the directional button on the
> bottom of the pda and scrolls to a record, the event fires once and the
> currect record is selected in the grid.
>
>
> Does this sound like intended behaviour?
> Why would it fire three times when they select something using the stylus,
> as opposed to once when the select using the scroll button?
>

 
Reply With Quote
 
Alex Fredricks
Guest
Posts: n/a
 
      10th Jun 2005
Hey all,

James the selectedindex event fires when the index changes or hen the
screen repaints/reactivates. I had the same problem and switched to
using value change event of the combo box to prevent this. Also, on
the form load event I have a boolean value set to true when the screen
is finished loading (just in case you load the combos during load)
because as the combos load the index change event wants to fire. Hope
that helps some.

Sergey Bogdanov wrote:
> I have never encountered with such behaviour. I suppose that the problem
> somewhere else:- can you provide small reproducible example?
>
>
> --
> Sergey Bogdanov
> http://www.sergeybogdanov.com
>
>
> James Goodman wrote:
> > I am using a combo to select records from a datagrid.
> >
> > If the user selects an item in the combo with the stylus, the events fires
> > three times, and the datagrid.selectedindex switches to the correct value,
> > before reverting to 0 twice.
> >
> > However, if the user selects an item using the directional button on the
> > bottom of the pda and scrolls to a record, the event fires once and the
> > currect record is selected in the grid.
> >
> >
> > Does this sound like intended behaviour?
> > Why would it fire three times when they select something using the stylus,
> > as opposed to once when the select using the scroll button?
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combobox Selectedindex changed event =?Utf-8?B?c2hhbmVzag==?= Microsoft VB .NET 1 17th Dec 2005 06:16 PM
Combo Box Selected Value changed event Gives Unhandleed exception. =?Utf-8?B?VmluYXkgS2FudA==?= Microsoft Dot NET Framework 4 7th Nov 2005 02:59 PM
selectedindex changed event & oracledatareader problem drdave@canoemail.com Microsoft Dot NET Framework 2 11th Feb 2005 07:57 PM
Combo SelectedIndex changed not fired when it is databound Shravan Microsoft C# .NET 0 25th Nov 2003 06:02 AM
selectedIndex/SelectedIndex in combo box guy Microsoft Dot NET Framework Forms 0 4th Jul 2003 09:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 PM.