Solved

VS 2008 -- C# ComboBox "Display Members"

Posted on 2009-07-14
2
523 Views
Last Modified: 2013-12-17
How can I have two
"Display Members"
in a ComboBox ?

Example
 1. create new APP
 2. drop "ComboBox" onto form
 3. check "Use Data Bound Items"
      ** DataSource = anything
      ** Display Member = ItemID & Description
      ** Value Member = ItemID
0
Comment
Question by:finance_teacher
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 24855398
in your datasource, can you concatenate both fields togheter (Item + ' - ' + Description as DispMember) and bind the new column?

you could also use a fake combo box that displays 2 columns: http://www.emoreau.com/Entries/Articles/2005/02/Multi-columns-ComboBox.aspx
0
 

Author Comment

by:finance_teacher
ID: 24859518
I did a concat(.....) and it worked
#777
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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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