Q: update dropdown list

G

Guest

Hello,
I have a dropdown list, updated through a dataset. After bind, I use this to
add extra item to my dropdown list. myDropDownList.Items.Add(“Item1â€), I can
remove that by using myDropDownList.Items.Remove(“Item1â€), If I try to remove
something coming from dataset, it seems I could not remove it. Is there any
way to do that, or is there any why to write a SQL string and update dropdown
list.
Thanks,
Jim.
 
S

Steve C. Orr [MVP, MCSD]

You must remove the item from the underlying dataset. Or delete the item
from the database and repopulate the dataset.
 
G

Guest

I am trying to filter dropdown list based on user login id. so I can not
delete it form table, how should I delete it from dataset?
 

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

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top