all groups > asp.net building controls > april 2005 >
You're in the

asp.net building controls

group:

removing item from dropdown list


removing item from dropdown list Paul
4/25/2005 7:14:04 PM
asp.net building controls:
Hi just wondering if there is a way to remove an item from a dropdown list in
code after it has been filled with data from a dataset? Also do I need to
know the index of the item I want to remove or is just knowing the string
value sufficient?
thanks.
--
Paul G
Re: removing item from dropdown list Brock Allen
4/25/2005 8:17:07 PM
DropDownList.Items.Remove (or RemoveAt) is what you want

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


AddThis Social Bookmark Button