In the context of a data-bound ComboBox whose ValueMember and DisplayMember properties are appropriately set:
Is there a difference between the SelectedIndexChanged and the SelecetedValueChanged events? Are they fired simultaneously when an item is selected from the drop-down list of the ComboBox?
Well, just because your index changes doesn’t necessarily mean that your value must change.
This also may not be the most realistic scenario because design-wise this implementation would be bad.
Let’s say you are displaying a
ComboBoxwhere you are displaying body parts. However, you may be exporting or storing this information in a format mapped to integer values. Therefore, yourComboBoxmay display “Left Arm” and “Right Arm” which are mapped to a value of 5, which defines (5 = Upper Body) in its mapping. Then, if the user switched “Right Arm” to “Left Arm” there is no value change; however theSelectedIndexhas changed.So I guess it is a case by case basis, but these events surely could function differently depending on the case.