Monday, October 31, 2011

How to databind a Dictionary to a ComboBox or Why I don't post much lately

Here's a perfect example of the kind of simple stuff I'm dealing with which is oddly new to me but has been solved for a looooong time now.

3 comments:

  1. comboBox1.DataSource = new BindingSource(colors, null);
    comboBox1.DisplayMember = "Value";
    comboBox1.ValueMember = "Key";

    Source...Bind Dictionary to Combobx

    Ling

    ReplyDelete

🧱 When the Ladder Disappears: AI, Capital, and the Crisis Facing Society's Builders Posted on April 23, 2025 • Tags: AI, automation, ...