是绑定到text属性?
帮帮忙谢谢!!
答完就给分!!!

解决方案 »

  1.   

    在this.DropDownListType.DataBind()之前加: DropDownListType.DataTextFied=str1;
    DropDownListType.DataValueFied=str2;
    str1,str2是 表的两个栏位名
      

  2.   

    this.DropDownListType.DataTextField="mem";或直接在DropDownListType的属性窗口设置DataTextField为men
      

  3.   

    如前面两位所说,
    为dropdownlist绑定数据时,还要为其设定DataTextFied(即每一项的显示内容)和DataValueFied(每一项的value)属性,否则显示会不正常。
      

  4.   

    只好自己编写一个for 循环,从table中挨个读出数据,挨个帮定到ArrayLiat中:ArrayList al= new ArrayList;for(int i= 0;i <=ds.Tables["MajorType"].Rows.count; i++){
          al.Add(ds.Tables["MajorType"].Rows[i]中你要帮定的内容);
    }dropDownList.DataSource = al;
    dropDownList.DataBind();以上代码只是为了提供思路,写倒程序中还需修改