But how could you live and have no story to tell!
访问统计 original graphics

在最后一项添加:
DropDownList.Items.Add("text")
or
DropDownList.Items.Add(new ListItem("text","value"))

在指定的位置添加一项:
DropDownList.Items.Insert(index, new ListItem("text","value"));

移除指定的项:
DropDownList.Items.Remove("text")
or
DropDownList.Items.RemoveAt(index)

移除所有的项:
DropDownList.Items.Clear()

项的总数:
DropDownList.Items.Count
posted on 2007-09-14 10:00  nextsoft  阅读(8537)  评论(6编辑  收藏  举报