[RESOLVED] Combobox for Multiple columns; 1 column visible
I want the combobox control effect to provide a drop-down list of Customers. However, I need to make sure that each combobox.item relates to a customer in the database.
I wanted to be able to store (or otherwise associate) CustomerID with each combobox.item, where the items will only be the customer names. That way, when a customer is chosen by name, I will readily know the CustomerID.
I can run an array side-by-side (parallel to) the combobox if needed, but maybe someone knows a better way.
Thanks.
NM. The best method is to create a Class to allow combobox1.DisplayMember and comboBox1.Valuemember to be set to the Class's properties of ID and Name.
Re: Combobox for Multiple columns; 1 column visible
Thanks for sharing your answer. Please mark your thread resolved
Re: [RESOLVED] Combobox for Multiple columns; 1 column visible
Ah! I thought I did, but apparently, changing the title is not the way to do it. I figured it out.