I have a ComboBox that is using objects. Each object has a data value (an integer), and a Text value (a string). The text values are what is displayed in the ComboBox.
As I scroll through my database, each record has an integer representing the data value. I want the ComboBox to display the Text item that matches that data value.
For example, my ComboBox objects might have...
Data Text
1 Cold
5 Warm
8 Hot
Each record in the database contains 1, 5 or 8.
I want the ComboBox to display "Cold", "Warm", or "Hot"
My question is... when I come to a record in the database with the data value 5. How do I select the item in the ComboBox that has data value 5 and have it update to show that item ("Warm" in the ComboBox?
As I scroll through my database, each record has an integer representing the data value. I want the ComboBox to display the Text item that matches that data value.
For example, my ComboBox objects might have...
Data Text
1 Cold
5 Warm
8 Hot
Each record in the database contains 1, 5 or 8.
I want the ComboBox to display "Cold", "Warm", or "Hot"
My question is... when I come to a record in the database with the data value 5. How do I select the item in the ComboBox that has data value 5 and have it update to show that item ("Warm" in the ComboBox?