469,128 Members | 1,518 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,128 developers. It's quick & easy.

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

Aug 28 '06 #1
1 3941
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

"johnb41" <js********@gmail.comschreef in bericht
news:11*********************@p79g2000cwp.googlegro ups.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

Aug 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Omar | last post: by
1 post views Thread by Jim Heavey | last post: by
3 posts views Thread by Nikolay Petrov | last post: by
reply views Thread by Michael C# | last post: by
3 posts views Thread by amber | last post: by
3 posts views Thread by Simon Tamman | last post: by
3 posts views Thread by =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.