Solved

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

Posted on 2011-09-09
6
188 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Independent Software Vendors: 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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

732 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