By using the SelectionChangeCommitted event, you know that it's a user who changed the combobox selected index
SelectedIndexChanged
* raised when DataSource is set
* raised when SelectedIndex is set programmatically
SelectionChangeCommitted
* not raised when DataSource is set
* not raised when SelectedIndex is set programmatically
SelectionChangeCommitted is raised first when a user selects an item from combobox before the SelectedIndexChanged is raised. Both events are not raised when items are added throught the Items property of the control.
source
Abonneren op:
Reacties posten (Atom)
Geen opmerkingen:
Een reactie posten