Im using the followin commands to fill a combobox from a dataset:
cmbProject.DataSource = myds.Tables(0)
cmbProject.DisplayMember = "ProjectName"
cmbProject.ValueMember = "ProjectId"
That is working just fine. The problem is when I try to get a value from the combobox using:
cmbProject.SelectedItem.ToString
Then I get the value : "System.Data.DatarowView" when I actually want the value thats in the combobox.
What am I doing wrong.
TIA
/John




Reply With Quote