We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to give a comboBox's DisplayMember 2 or more columns?

Thread ID:

Created:

Updated:

Platform:

Replies:

2051 Dec 12,2002 04:47 AM UTC Jul 7,2003 07:35 AM UTC Windows Forms 2
loading
Tags: FAQ
Jackfan
Asked On December 12, 2002 04:47 AM UTC

Hi: How to give a comboBox's DisplayMember 2 or more columns? Like: comboBox.DisplayMember = "CustomerId" + "CustomerName"; comboBox.ValueMember = "CustomerId";

Shardool Karnik
Replied On December 17, 2002 05:15 PM UTC

Use a DataView and combine the two as IdName in the sql select statement .... there is no other way that i know of .... > Hi: > How to give a comboBox's DisplayMember 2 or more columns? > Like: > comboBox.DisplayMember = "CustomerId" + "CustomerName"; > comboBox.ValueMember = "CustomerId";

Rohit
Replied On July 7, 2003 07:35 AM UTC

Sorry to post a question on question but what if I want more than 1 value member.. Like in my case, I have 3 columns that form a composite key of a colimn.. So I want all 3 to be value member for a column of another column.. How do I achieve that?

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;