impossiblealternative:
you manually insert an item on top stand for not select.

解决方案 »

  1.   

    "DropDownList1.SelectIndex=-1" is not invalid.
      

  2.   

    thetuxedo is right.
    I have done it just like what  thetuxedo has said.
      

  3.   

    DropDownList在运行时要求是必须有一项被选择,所以你绑定数据库的时候,即使不加drop.SelectedIndex=0;它也会默认把它加上去的。给你一种方法,大概可以满足你的要求,就是给它加一个空项
    drop.Items.Insert(0,String.Empty);
    drop.SelectedIndex=0;
      

  4.   

    我当是新增的话自己在最上面加一条 。第一条  Text:请选择下拉 value :-1