Solved

VS 2008 -- C# ComboBox "Display Members"

Posted on 2009-07-14
2
516 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 69

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

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

14 Experts available now in Live!

Get 1:1 Help Now