dropdownlist.SelectValue=...(你的value值)

解决方案 »

  1.   

    dropdownlist.SelectedIndex = dropdownlist.Items.IndexOf(dropdownlist.Items.FindByValue(strValue));
      

  2.   

    dropdownlist.selectedindex = gridview要绑定的value值就可以了`;
      

  3.   

    根据前一页的 id , request.querystring("id")
    读取数据库中该条记录 if (myreader.Read())
    {
          ...
        this.dept.SelectedItem.Text = myreader["re_dept"].ToString().Trim();
          ...
    }提示未将对象绑定到实例???注:编辑页面的dept(dropdownlist控件)绑定了一个数据源的。
      

  4.   

    问题是,既要在 dropdownlist控件中显示 数据库中的数据,又要能绑定到该页设置的数据源中,两则不兼容好像??
      

  5.   

      终于解决了,自己结贴! 
    this.dept.SelectedItem.Text 改成 this.dept.SelectedValue,就ok了