G
Guest
Cannot not seem to make any sense of the order that my key/values end up in
when added to the Hashtable...ideally, I would like to be able to sort the
keys/values...but not thinking it is possible.
For those who are sure going to ask why I am asking this....I use the
Hashtable for conveniently cross-referencing pairs of information...and I am
now trying to populate a combo box based on the hashtable contents using the
key as the combo box item, and the value as the referenced information when
that item is selected....much like the DisplayMember/ValueMember when loading
the combo box from an ADO.net data source. My problem here is simply a
visual issue with controlling the order items appear in the combo box.
If anyone knows how to control the order when adding to the Hashtable,
please help! Or...if someone can provide a short explanation of why it
cannot be done, that would sure satisfy my curiosity.
Thank you.
when added to the Hashtable...ideally, I would like to be able to sort the
keys/values...but not thinking it is possible.
For those who are sure going to ask why I am asking this....I use the
Hashtable for conveniently cross-referencing pairs of information...and I am
now trying to populate a combo box based on the hashtable contents using the
key as the combo box item, and the value as the referenced information when
that item is selected....much like the DisplayMember/ValueMember when loading
the combo box from an ADO.net data source. My problem here is simply a
visual issue with controlling the order items appear in the combo box.
If anyone knows how to control the order when adding to the Hashtable,
please help! Or...if someone can provide a short explanation of why it
cannot be done, that would sure satisfy my curiosity.
Thank you.