views:

40

answers:

1

I'm initialize my ComboBox using DataSource. After that when I'm trying to remove item from ComboBox I'm getting exception: "Items collection cannot be modified when the DataSource property is set."

How can I remove items from ComboBox ?

+2  A: 

You should modify the datasource. Delete the item from the list that is bound to the combobox.

Chris Taylor
Thanks Chris. That mehtod working :)
Davit Siradeghyan
@Davit, glad it helped.
Chris Taylor