Solved

VS 2008 -- C# ComboBox "Display Members"

Posted on 2009-07-14
2
514 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
Comment Utility
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
Comment Utility
I did a concat(.....) and it worked
#777
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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