title: Bind a Dictionary<K,V> to a DropDownList
body: <p>I was wondering why this doesn't work: </p>
  
  <p>Is it possible to declaratively bind to an Object's property.</p>
  
  <pre><code>&lt;asp:DropDownList id="ddl" runat="server" 
          DataValueField="Key" 
          DataTextField="Value.DisplayName" /&gt;
  </code></pre>
  
  <p>Code Behind</p>
  
  <pre><code>var d = new Dictionary&lt;int, MailAddress&gt;();
  d.Add(0,new MailAddress("foo@bar.com", "Mr. Foo");
  d.Add(1,new MailAddress("bar@foo.com", "Mr. Bar");
  
  ddl.DataSource = d;
  ddl.DataBind(); // Error. It doesn't like "DisplayName"
  </code></pre>