SelectedIndex and SelectedIndexChanged

3 posts, 0 answers
  1. James
    James avatar
    15 posts
    Member since:
    Feb 2016

    Posted 05 Apr Link to this post

    I am using the WinForms 2016 version.

    I have discovered that selecting the first item in the combobox in code is not calling the SelectedIndexChanged of the same control.

    <b>mcc_Scaffold_Tag.SelectedIndex = 0 </b>


    Am I using the right event?






  2. Dess
    Dess avatar
    1562 posts

    Posted 06 Apr Link to this post

    Hello James,

    Thank you for writing.

    Note that when data binding RadMultiColumnComboBox, the first item is selected by default. Hence, the SelectedIndex property is set to 0. If you set the SelectedIndex property again the SelectedIndexChanged won't be fired because the selection is not changed actually. I have prepared a sample project for your reference.

    I hope this information helps. Should you have further questions I would be glad to help.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
  4. James
    James avatar
    15 posts
    Member since:
    Feb 2016

    Posted 06 Apr in reply to Dess Link to this post

    Thank you Dess.  You explanation and sample is very much appreciated.
Back to Top