Hello guys, I am trying to associate "Text" and "value" with a combo box. I was trying to do it via this method:
ComboBox.ValueMember = "Mechanism"
ComboBox.DisplayMember = "RepairItemName"
ComboBox.DataSource = arrTemp
Where arrtemp is an arraylist of objects. Every object has a field called Mechanism and RepairItemName.
For some reason, when I am debugging it and I add wach for "ComboBox" and look into its properties, The DisplayMember field Is empty.
When I opened up the arrtemp, I can see that its made up of objects that have a field named "RepairItemName" . Any ideas on how to do it.
Thanks,
Nabby
ComboBox.ValueMember = "Mechanism"
ComboBox.DisplayMember = "RepairItemName"
ComboBox.DataSource = arrTemp
Where arrtemp is an arraylist of objects. Every object has a field called Mechanism and RepairItemName.
For some reason, when I am debugging it and I add wach for "ComboBox" and look into its properties, The DisplayMember field Is empty.
When I opened up the arrtemp, I can see that its made up of objects that have a field named "RepairItemName" . Any ideas on how to do it.
Thanks,
Nabby