Combobox datasource has been assigned with
cmbCombobox.DataSource = myCollection
where myCollection has type MyCollection: List
How can I clear items in combobox?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you data bind a control, it will synchronize with that collection. In order to clear the items in your ComboBox set it’s DataSource to null.
If your combobox is not databound (no DataSource) then you can do