Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count = DropDownList.Items.Count - 1;
- for (int i = count; i > 0; i--)
- DropDownList.Items.RemoveAt(i);
- var listItem = DropDownList.Items[0];
- DropDownList.Items.Clear();
- DropDownList.Items.Add(listItem);
Add Comment
Please, Sign In to add comment