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,
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Zoran HorvatPosted Jul 27, 2011, 3:39 AM
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
Jiteendra SampathiraoPosted Jul 27, 2011, 3:10 AM