Combobox remove

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a combobox bind to a datast.table and when tring to remove an Item
from the combobox with this code:
combobox.Items.RemoveAt(0)
it's giving me this error

"Cannot modify the Items collection when the DataSource property is set"
 
Try removing that item from the datatable. .. the Comboboz is bound to the
data-table,so would not be editable.

thanks
Rajneesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top