clear combo

karunam

Member
Joined
Aug 1, 2005
Messages
11
Programming Experience
Beginner
when i try to clear combo box giving cboemp.items.clear i get error
"cannot modify the items collection when datasource property is set" how can i handle this


Thanks in advance
karuna
 
You have a databound combobox so therefore you should not be clearing the items using that method. Either remove the data you want to clear from the underlying datatable, or don't bind the combobox to start with and read the values in using the combob's items.add method.
 
Back
Top