Solved

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

Posted on 2011-09-09
6
183 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 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

13 Experts available now in Live!

Get 1:1 Help Now