Using Multiple columns in a ComboBox DisplayMember property
Posted on 2005-04-29
I have a dataset i am binding to a ComboBox and i want the drop down combobox to display 2 columns from a table.
For Instance if i have a vendor_No column and a Vendor_Name column i want the drop down list to show
So far i can only seem to figure out how to have only one column displayed i tried doing something simple like this
ComboBox2.DisplayMember = "Vendor_No + ' ' + Vendor_Name"
No luck with anything along those lines, there must be a way though. Any help would be greatly appreciated