title: Binding multiple DropDownLists to the same datasource
body: <p>My mark-up page is as follows:</p>
  
  <pre><code>&lt;asp:DropDownList ID="DropDownList1" runat="server" DataTextField="Description" DataValueField="Value" /&gt;
  &lt;asp:DropDownList ID="DropDownList2" runat="server" DataTextField="Description" DataValueField="Value" /&gt;
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>class grade
  {
      public string Description { get; set; }
      public string Value { get; set; }
  }
  protected void Page_Load(object sender, EventArgs e)
  {
      List&lt;grade&gt; gradeList = new List&lt;grade&gt;()
        { new grade {Description="Poor", Value="1"}, 
            new grade { Description="Average", Value="2"}, 
            new grade {Description="Good", Value="4" } };
      //in real life the above list is read from a database
  
      DropDownList1.DataSource = gradeList;   DropDownList1.DataBind();
      DropDownList2.DataSource = gradeList;   DropDownList2.DataBind();
  }
  </code></pre>
  
  <p>The above works fine for me.  I am able to change SelectedValue as well as SelectedIndex at run time for both DropDownLists without errors.  May I know whether the above is kosher.</p>
  
  <p>Thanks.</p>