Hi guys how r u ?
My question is that,
I have to remove only one item from dropdownlist which was bound from database by programming,
How can i remove item from dropdownlist through foreach loop?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 26, 2011, 11:10 PM EDT
Zoran HorvatRank #792 · 2.9K reputationPosted Jul 26, 2011, 11:39 PM EDT
1. Create (generic) List
2. Iterate through items in the DropDownList
3. Each item which differs from the one you want to remove you should add to previously created List
4. Once done, List will contain all items except that one to remove; now set DropDownList.DataSource to that List
Zoran