Hi,
Im trying to set a primary key as valuemmeber of a Combobox. The problem is that it wont show the correct data, it show always System.Data.Dat aRowView. But it works fine when I change the column to one that has no numbers (int. Below is the code:
private void ComboFbo(string destino)
{
bdwinterDataSet TableAdapters.f bosTableAdapter ta = new Sistema.bdwinte rDataSetTableAd apters.fbosTabl eAdapter();
cboFboNome.Data Source = ta.ComboFbo(des tino);
cboFboNome.Disp layMember = "Nome";
cboFboNome.Valu eMember = "idFBOs";
cboFboNome.Refr esh();
}
Please help me out
Im trying to set a primary key as valuemmeber of a Combobox. The problem is that it wont show the correct data, it show always System.Data.Dat aRowView. But it works fine when I change the column to one that has no numbers (int. Below is the code:
private void ComboFbo(string destino)
{
bdwinterDataSet TableAdapters.f bosTableAdapter ta = new Sistema.bdwinte rDataSetTableAd apters.fbosTabl eAdapter();
cboFboNome.Data Source = ta.ComboFbo(des tino);
cboFboNome.Disp layMember = "Nome";
cboFboNome.Valu eMember = "idFBOs";
cboFboNome.Refr esh();
}
Please help me out
Comment