Solved

Set Combobox datasource to a dictionary

Posted on 2007-11-28
1
3,542 Views
Last Modified: 2008-04-14
Is there a way to set the datasource of a combobox to a dictionary (System.Collections.Generic.Dictionary).  I'm not sure what to put for the ValueMember and DisplayMember properties to make this work.  
0
Comment
Question by:vb9666
1 Comment
 
LVL 24

Accepted Solution

by:
Jeff Certain earned 125 total points
ID: 20365920
I found this a while ago... it should be what you're after:
http://www.madprops.org/cs/blogs/mabster/archive/2005/10/05/Bind-a-ComboBox-to-a-generic-Dictionary.aspx

Basically, you use "Value" and "Key" as the members.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question