Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Problem with "Data bound Items" of ComboBox.
 

Problem with "Data bound Items" of ComboBox.

Hi,

I am using VB.Net 2005 and MS Access. I have one comboBox which use "Data bound items". Currently, it bound to one dataSource -- HumanBindingSource.

Could someone please advise me, so that, when I execute the application, the ComboBox will display 2 members from the HumanBindingSource, for example, it will display then name and the humanID, something like below:

John, 112
Peter, 113
Mary, 114

Currently, it only display the 'name' from the "HumanBindingSource".

John
Peter
Mary

Thanks a lot.

Best Regards,
Yee Boon
YeeBoon  Sunday, February 11, 2007 8:21 AM
See this project: Multi Column ComboBox
Zhi-Xin Ye  Monday, February 12, 2007 10:48 AM
try with "xxx ".
p4praveen  Sunday, February 11, 2007 8:27 AM
See this project: Multi Column ComboBox
Zhi-Xin Ye  Monday, February 12, 2007 10:48 AM
HelloYeeBoon
if you are use MS-SQL database
you can use stored procedure for display two cullomn in one column
for examlpe


fname and last name fields in members table
select fname +' ' + lastname as exp1 from members

Ali Reza Salimzadeh  Thursday, July 16, 2009 6:43 PM

You can use google to search for other answers

Custom Search

More Threads

• Frustrating Access database connection issue...
• DGVComboBoxColumn DataBinding
• wildcard in table adaptor problem
• how to find about base class improvements/fixes in 3.5?
• DataSet - DataGridView - Refresh
• tableadapter + connection pooling + corrupt connections in pool
• triggers and vb2005
• databound listbox
• Problem Creating Data Adapter
• HOW TO ADD CONTEXTMENU TO EACH ITEM IN A LISTVIEW WHEN I SELECTED IT?