title: How to bind a dictionary to a gridview?
body: <p>Is it possible to automatically bind a Dictionary to a Gridview? The closest I've got is:</p>
  
  <pre><code>Dictionary&lt;string, myObject&gt; MyDictionary = new Dictionary&lt;string, myObject&gt;();
  // Populate MyDictionary here.
  Grid1.DataSource = MyDictionary.Values;
  Grid1.DataBind();
  </code></pre>
  
  <p>This binds the properties in myObject to the gridview, but I'd like to get the key as well. If it's not possible, is there an alternative, e.g. use a repeater? Thanks.</p>