Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
SelectedIndex is different in 11.2 than it was in 10.3
posted

Just wanted to know if anyone else is experiencing this problem.

I have a comboeditor with SuggestAppend.  When someone keys in a letter, I trap the letter in ValueChanged, and see if the SelectedIndex has been set yet.  Then I populate other fields based upon this selection.

When I converted from 10.3 to 11.2 (I have backed it out due to this problem), the SelectedIndex is not being fired when it reaches a matching entry in the combo, so my valuechanged code does not populate the other fields.

Under 10.3, when keying and reaching a selected item in the list, the selected item index would be set.  It seems that under 11.2, the selecteditem index is not being set until the control loses focus.

I know I can use SelectedIndex rather than ValueChanged, but this will require hours of research and testing.

I am not able to move forward with 11.2 until I figure out what to do.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I tried this out and both v10.3 and v11.2 behave exactly the same for me. I am attaching my sample here so you can take a look.

    When I run this sample and type in "Grape", when I get to the last "e", the output looks like this:

    Value: 3
    Text: Grape
    SelectedIndex: 3

    I get the same results in 11.2 and 10.3.

     

     

     

    WindowsFormsApplication21.zip
Reply Children