Hi, I'm having some issues to do the following. Any help is much appreciate.
I have a table with two columns. I want to display in a ComboBox the column "Description", and when the item is selected, display the value of the column ID in a Label Text. I have the following Elements:
- Table1: Where the data is
- ComboBox1: ComboBox displaying column Description
- Label1: Label displaying the ID of the selected Description in Table1
For example, giving the Table 1 below, my ComboBox1 should display ITEM_1, ITEM_2, ITEM_3, ITEM_4, ITEM_5,
If I select the ITEM_1, Label1 should display "1"
Table1
ID Description
1 ITEM_1
2 ITEM_2
3 ITEM_3
4 ITEM_4
5 ITEM_5
I've tried to add to Combobox the following
- Items: Table1.Description. It display the items in the combobox but I can not get the ID in Label. (I am using in Label - TEXT: Combobox1.Selected.Text)
- Items: Table1. It display the items in the combobox but 1) I can't search in the combobox and 2) I can not get the ID in Label.
Any suggestion?