Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Combobox Dropdown Displays System.Data.DataRowView Instead of Display Member

$
0
0
Hello,

In my form I have a combobox bound through a table adapter to a SQL Server stored proc.  OnLoad the combobox initializes great, and I can select items from the dropdown that on SelectionChangeCommitted display in the combobox.text correctly, but the top item in the dropdown list (item 0) changes to the selected text and overwrites the first item.  

After I use a button_Click procedure fill a second table adapter based on the combobox.text, selecting items in the combobox causes them to display only "System.Data.DataRowView" instead of the text that was there before.  Nothing should be affecting the combobox, but something changes. 

Me.GetTableAdapter1.Fill(Me.MyDataSet.MyStoredProc1)

 

Me

What am I missing?  Thanks for any help you can provide.

Bruce.GetTableAdapter2.Fill(Me.MyDataSet.MyStoredProc2, Me.MyComboBox.Text)

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>