this.DropDownList2.Items.Insert(0,new ListItem("--请选择类型--", "0"));
手动修改DropDownList选择项的时候
AppendDataBoundItems属性要设置为True这个属性的意思是可以再已有项的前提下添加新项,而不改变原来项!
this.DropDownList2.Items.Insert(0,new ListItem("--请选择类型--", "0"));
手动修改DropDownList选择项的时候
AppendDataBoundItems属性要设置为True