Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi
i'm using a multicolumn combobox using the MTGCCombobox dll.
My code is


cmb.Items.Clear();
   cmb.LoadingType = MTGCComboBox.CaricamentoCombo.DataTable;

   cmb.SourceDataString = new string[2] { "Id", "Name" };
   cmb.SourceDataTable = dtbl;

Combobox AutoComplteMode = SuggestAppend.

The problem is when i type on the combo the value of first Column "Id" is showing.
How can I change the displaymember. so that after the selection is made the combo will show value of second column "Name"?


Thanks in advance.
Posted
Updated 19-May-11 0:35am
v2

1 solution

Ask this the authors of this article: http://beta.codeproject.com/KB/architecture/MultiColumnFlatCombo.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900