I have a webservice that I want to populate a combobox on a windows form.
The webservice creates the correct XML output, but when I attempt to bind it
to a combobox I get this error:
Additional information: Cannot bind to property or column FullName on
DataSource.
This error occurs with the databindings. Here is the code:
--
Dim oDS As New DataService ' This is the webservice
Dim ds As New DataSet ' dataset to fill
ds = oDS.GetCounselors ' filling the dataset
cbCounselors.DataSource = ds.Tables("Counselors") 'combobox datasource
cbCounselors.DataBindings.Add("DisplayMember", ds, "FullName") '
cbCounselors.DataBindings.Add("ValueMember", ds, "StaffID")
Any help will be appreciated.
dan