I am populating a combo box using data from a database, it is working correctly, however I am currently populating with the ID and I'd also like the description to be displayed.
I don't want to simply want to populate it with the description because I need the ID to be what is saved back when changes are made. How can I display additional data in the combo box?
Here is my code:
I don't want to simply want to populate it with the description because I need the ID to be what is saved back when changes are made. How can I display additional data in the combo box?
Here is my code:
VB.NET:
Do While drReader.Read
cboTheater.Items.Add(drReader("TheaterID"))