0
Answer

Data bound combobox text value

Alan

Alan

18y
1.7k
1
Hi
I am a C# beginner. Have a data bound combo which I use to assign a parameter to a query like so:

oleDbDataAdapter1.SelectCommand.Parameters["class"].Value = cboClass.Text;

Problem is that after I have selected item from the combo list the value in cboClass.Text is {system.data.datarowview}. If I type a new value in to combo cboClass then Text is fine and the query gives correct result.

Should add I am using VS.Net 2003

Any help appreciated.

Thanks

Alan