Hi,
I'm populating a ComboBox with objects which contain two properties -
IntegerValue and StringValue. I display StringValue in the ComboBox
form and can retrieve IntegerValue from the SelectItem.IntegerValue
property. This is all good but now I want to get a little bit more
complicated.
I want to be able to set the ComboBox's SelectedItem property by
setting IntegerValue, so for instance if I have the following items in
my ComboBox:
IntegerValue StringValue
3 Apple
4 Banana
1 Carrot
5 Eggplant
2 Fig
By doing something like ComboBox.SelectedItem.IntegerValue = 1 the
ComboBox would then display Carrot.
I imagine I would need to create a custom ComboBox control and add a
function which is kicked off when the IntegerValue is Set, or perhaps
just override an existing function.
Has anyone done this or something similar before or have any
suggestions?
Regards,
Mong