如何用downdroplist的各项去读取某条记录的某几列呢  想的我很头痛 真的救命啊

解决方案 »

  1.   

    downdroplist是读数据库当中的内容吗?如果是:
    谋几行==应该是构造sql应该做的事情
    谋几列==downdroplist默认的应该是只是绑定一列的内容,如果是几列则应该是使用循环自己添加数据了。
      

  2.   

    把这几列读到ArrayList等集合里,然后绑定到DropDownList
      

  3.   

    我是想用dropdownlist来绑定某一行数据的特定几列,让它项的内容的每一行为某一列的内容,
       dropdownlist.Items[0].Text=rd["bMh"].ToString();
       dropDownList1.Items[0].Value=rd["bch"].ToString();
       dropDownList1.Items[1].Text=rd["bAh"].ToString()
        dropDownList1.Items[1].Value=rd["bAh"].ToString()
    不过这样就包错了
      

  4.   

    dropdownlist.Items.Add(rd["bMh"].ToString());