|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Binding to a combobox w/ hashtable...I have some data in a hashtable, and i need to bind it to a combobox.
I know it's impossible to bind a hashtable to a combobox. I need to "bind" it so the combobox gets a DISPLAYMEMBER and a VALUEMEMBER. I can't supply a valuemember by simply iterating through a hashtable and adding items to a combobox. How else can i get the same effect? What's the best way? If not a hashtable, what type of object should I use? (i'm currently using a hashtable because i need the key/value pair support that it has) Thanks everyone for the help! John John,
I don't know this because I would direct use a datatable. All find options in a hashtable are at least as well in a datatable (although the key does not have to be always unique if you do not set that). Cor Show quoteHide quote "johnb41" <jsbuchm***@gmail.com> schreef in bericht news:1156804250.623759.36860@p79g2000cwp.googlegroups.com... >I have some data in a hashtable, and i need to bind it to a combobox. > I know it's impossible to bind a hashtable to a combobox. I need to > "bind" it so the combobox gets a DISPLAYMEMBER and a VALUEMEMBER. I > can't supply a valuemember by simply iterating through a hashtable and > adding items to a combobox. > > How else can i get the same effect? What's the best way? If not a > hashtable, what type of object should I use? (i'm currently using a > hashtable because i need the key/value pair support that it has) > > Thanks everyone for the help! > > John >
Net.WebRequest - Close Connection
Timer driving me nuts OK, new registry question vfp oledbcommand [Fail] Resource and Time consuming stuff Virtual desktop makes .NET modal dialog panels disappear looking for tree/outline control that allows in-place editing AND will expand as I type How do I add a c++ library to my vb.net project? Looping through data adapter Jet error message when trying to create a DS from Excel |
|||||||||||||||||||||||