title: Binding array of string to DropDownList?
body: <p>A question that I have never solved. I will illustrate with two code samples in which one works and the other doesn't:</p>
  
  <pre><code>Page_Load()
  {
          FontFamily[] oFamilyFontList = FontFamily.Families;
          DropDownList_Fonts.DataSource = oFamilyFontList;
          DropDownList_Fonts.DataBind();
  
          string[] colorName = System.Enum.GetNames(typeof(KnownColor));
          DropDownList_FontColor.DataSource = colorName;
          DropDownList_FontColor.DataBind();
  }
  </code></pre>
  
  
  
  <pre><code>    &lt;asp:DropDownList 
          ID="DropDownList_Fonts" DataTextField="Name" 
          DataValueField="Name" runat="server" &gt;
      &lt;/asp:DropDownList&gt;
  
      &lt;asp:DropDownList 
          ID="DropDownList_FontColor"  DataTextField="colorName" 
          DataValueField="colorName" runat="server" &gt;
      &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>The first DropDownList populates fine without any errors because each object oFamilyFontList has a property 'Name' which binds with the DataText and DataValue fields.</p>
  
  <p>The second one has no properties at all and it's just an array of strings. What possibly can I put inside both fields to make it work ?</p>