DataTable table=country.CountryTable ;
cmbCountry.DataSource=table;
cmbCountry.ValueMember="Fid";
cmbCountry.DisplayMember="countryName";

解决方案 »

  1.   

    dim i as integer 
    for i=0 to table.rows.count-1
        cmbCountry.item.add(new listitem(table.rows(i).item("XX").tostring,table.rows(i).item("XX").tostring))next VB代碼。主要是間接通過申明一個listitem來添加到下拉表裡。
      

  2.   

    代码没错,你出什么错误了?先确认一下table内是否有值!
      

  3.   

    代码没问题,要就把
    cmbCountry.ValueMember="Fid";
    cmbCountry.DisplayMember="countryName";cmbCountry.DataSource=table;试试.
      

  4.   

    谢谢,原来是因为这两句错了
    cmbCountry.ValueMember="Fid";
    cmbCountry.DisplayMember="countryName";
    区分大小写