C
CN
I have two fields in a database 1) Customer Name and 2)
Customer ID.
I know how to populate a listBox in a Web application so
it displays the Customer Names and passes the Customer ID
when you select a name.
I'm trying to do the same thing in a Windows Application,
but have only been able to bind the names to the control.
How do you attach the Customer ID value to the name?
In a Web application, I would just do:
Control.Items.Add(CustomerName);
Control.Items[i++].Value = (CustomerID);
Thanks!
Customer ID.
I know how to populate a listBox in a Web application so
it displays the Customer Names and passes the Customer ID
when you select a name.
I'm trying to do the same thing in a Windows Application,
but have only been able to bind the names to the control.
How do you attach the Customer ID value to the name?
In a Web application, I would just do:
Control.Items.Add(CustomerName);
Control.Items[i++].Value = (CustomerID);
Thanks!