R
Rob
Hello,
I have a custom object called AddressTypes. It is simple as it just stores
a Dictionary<int, String> of address types - int value and string description
value.
I would like to bind this to a combobox. I tried binding it directly to the
dictionary which kinda works but I get a display of items that say [1,
Physical], [2, Mailing]....
And what I am looking for is just for it to say: Physical, Mailing... and
then when one of those is selected, its int value is retrievable.
Basically I don't want the int value displayed in the box with the
description.
How do I implement this into my custom class/object so that I can just bind
it have it work correctly?
I do not want to have to loop to populate values but would rather bind
directly.
I don't know what to search for online. Any ideas?
Thanks for reading this!
Rob
I have a custom object called AddressTypes. It is simple as it just stores
a Dictionary<int, String> of address types - int value and string description
value.
I would like to bind this to a combobox. I tried binding it directly to the
dictionary which kinda works but I get a display of items that say [1,
Physical], [2, Mailing]....
And what I am looking for is just for it to say: Physical, Mailing... and
then when one of those is selected, its int value is retrievable.
Basically I don't want the int value displayed in the box with the
description.
How do I implement this into my custom class/object so that I can just bind
it have it work correctly?
I do not want to have to loop to populate values but would rather bind
directly.
I don't know what to search for online. Any ideas?
Thanks for reading this!
Rob