Link to home
Start Free TrialLog in
Avatar of vbnetcoder
vbnetcoder

asked on

Removing items from a drop down list in code

I am adding items to a drop down list this way:


ddList.Items.Add(New ListItem(DESCRIPTION, vALUE))

How would i remove a item where the value = "N"?
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

ddList.Items.RemoveAt(index)
Avatar of vbnetcoder
vbnetcoder

ASKER

The index might change .... i want to remove the value
ddList.Items.Remove(ItemAsString)
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ty