Solved

First line in a combo box replaced by system.data.datarowview

Posted on 2011-09-09
6
191 Views
Last Modified: 2012-05-12
I have a copbo box which loads everything OK, but after the first click on the combo the first entry is replaced with system.data.datarowview unless you click on the first item in which case it stays OK.

Any ideas?
0
Comment
Question by:grwallace
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 36510146
What does the code to load the ComboBox look like?
0
 

Author Comment

by:grwallace
ID: 36510204
The datasource, displaymember & valuemember are set at design time - there are no assignments in code

The datssource is set as a bindingsource and the selecteditem and selectedvalue are set to fields from the bindingsource, as are in valuemember & displaymember fields.
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 36510230
What does the DisplayMember declaration look like?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:grwallace
ID: 36510256
It is Description1, a field which is picked from the DisplayMember dropdown which shows the table to which the Bindingsource is bound
0
 

Accepted Solution

by:
grwallace earned 0 total points
ID: 36510619
The problem was cured by setting the SelectedItem in the Databindings section to None, and the SelectedValue field set to the Id of the table which I was looking to return.

That solved the problem
0
 

Author Closing Comment

by:grwallace
ID: 37089703
I found my own solution
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question