Solved

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

Posted on 2011-09-09
6
182 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
  • 4
  • 2
6 Comments
 
LVL 74

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 74

Expert Comment

by:käµfm³d 👽
ID: 36510230
What does the DisplayMember declaration look like?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now