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
 
Back
Top