I am using ComboBox in Windows Forms Applicaton. I have set SelectedIndexChanged event handler.
Problem is that when ComboBox is populated from Database in Form Load event, that time the SelectedIndexChanged event handler is triggered. Why?
You will need to use the SelectionChangeCommitted event and not the SelectedIndexChanged event.
The SelectionChangeCommitted event works similar to SelectedIndexChanged event, the only difference is that the SelectedIndexChanged event gets fired when the ComboBox selection is changed from code i.e. during DataBinding.
ComboBox SelectionChangeCommitted event
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.