Using c# 3.5, I'm trying to bind a data table to a combo box, but I cant see
any data in the list. I'm sure the data table has data. Here's my code:
DataSet ds = GetData();
DataTable tb = ds.Tables["tb"];
myCombo.DataCon text = tb;
myCombo.Display MemberPath = tb.Columns["Name"].ToString();
myCombo.Selecte dValuePath = tb.Columns["ID"].ToString();
any idea what I'm doing wrong?
--
moondaddy@newsg roup.nospam
any data in the list. I'm sure the data table has data. Here's my code:
DataSet ds = GetData();
DataTable tb = ds.Tables["tb"];
myCombo.DataCon text = tb;
myCombo.Display MemberPath = tb.Columns["Name"].ToString();
myCombo.Selecte dValuePath = tb.Columns["ID"].ToString();
any idea what I'm doing wrong?
--
moondaddy@newsg roup.nospam
Comment