0
Reply

Data bound combobox text value

Alan

Alan

Oct 18 2006 5:47 PM
1.6k
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