How to detect the dropdown list value has changed?
Posted on 2004-10-06
I have a dropdown box in windows form application. Dropdown style is 'dropdown list'.
When the selection in the dropdown is changed I want to find out if the newly selected value is different from the old value or the user has selected the old value again.
The events 'SelectedValueChanged' and 'SelectedIndexChanged' are fired even when the old value is re-selected. I do not want to trigger the event if the old value is chosen again. Is there any event that can detect whether the user is re-selecting same value that is currently selected? If there is no event to handle this, is there any simpe coding that will detect this?
Thanks in advance.