Solved

VS 2008 -- C# ComboBox "Display Members"

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# bracket error 3 32
Modal Popup Extender control 1 20
VB.Net/LINQ: ".Contains" condition not finding existing result in MSSQL 16 36
Powershell File Sort 8 31
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 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