This is a migrated thread and some comments may be shown as answers.

SelectedIndex and SelectedIndexChanged

2 Answers 283 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Speedy
Top achievements
Rank 1
Speedy asked on 05 Apr 2016, 02:26 PM

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 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 06 Apr 2016, 09:08 AM
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.

 Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Speedy
Top achievements
Rank 1
answered on 06 Apr 2016, 01:00 PM
Thank you Dess.  You explanation and sample is very much appreciated.
Tags
MultiColumn ComboBox
Asked by
Speedy
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Speedy
Top achievements
Rank 1
Share this question
or