By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,238 Members | 1,485 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,238 IT Pros & Developers. It's quick & easy.

Combobox remove

P: n/a
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"

--
Regads,
Rochdi
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Try removing that item from the datatable. .. the Comboboz is bound to the
data-table,so would not be editable.

thanks
Rajneesh

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:F2**********************************@microsof t.com...
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"

--
Regads,
Rochdi

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.