在C#.net中有DropDownList 其中某一行设置为不能被选择怎么设置
this.DropDownList.Items.Insert(0,newListItem("请选择","1"));this.DropDownList.Items.Inse...
this.DropDownList.Items.Insert(0, new ListItem("请选择", "1"));
this.DropDownList.Items.Insert(1, new ListItem("A计划", "2"));
this.DropDownList.Items.Insert(2, new ListItem("B计划", "3"));
this.DropDownList.Items.Insert(3, new ListItem("C计划 "4"));
this.DropDownList.Items.Insert(4, new ListItem("D计划", "5"));
就是说 请选择这一项不能被选中 展开
this.DropDownList.Items.Insert(1, new ListItem("A计划", "2"));
this.DropDownList.Items.Insert(2, new ListItem("B计划", "3"));
this.DropDownList.Items.Insert(3, new ListItem("C计划 "4"));
this.DropDownList.Items.Insert(4, new ListItem("D计划", "5"));
就是说 请选择这一项不能被选中 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询