azae Posted February 1, 2005 Posted February 1, 2005 try { string query1 = "SELECT DISTINCT CaseNo FROM ReceivingImport WHERE InvoiceNo='"+combo_Invoice.Items+"'"; SqlCeDataAdapter adapter = new SqlCeDataAdapter(query1,conn); DataSet dtSet = new DataSet(); adapter.Fill(dtSet,"ReceivingImport"); combo_CaseNo.DataSource=dtSet.Tables["ReceivingImport"]; combo_CaseNo.DisplayMember="CaseNo"; this code is C#. I am using combobox to do the selection. I tried all possible methods for object combo_Invoice. But none of them give the value of the string display on the selection. I even tried on text too. How can it be solve Quote
donnacha Posted February 1, 2005 Posted February 1, 2005 I have no idea what you are trying to say, but if you want to read the selected text you can see it either in combobox.Text or combobox.SelectedText Quote Hamlet
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.