title: Manipulating DropDownList within TemplateField
body: <p>I have a dropdownlist inside of a TemplateField, within a GridView.</p>
  
  <p>I would like to dynamically add list items to it and write code to handle when the index changes. How do I go about manipulating the list, since I can't directly reference the DropDownList when it's in a TemplateField.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Transfer Location" Visible="false"&gt;
     &lt;EditItemTemplate&gt;
        &lt;asp:DropDownList ID="ddlTransferLocation" runat="server" &gt;&lt;/asp:DropDownList&gt;
     &lt;/EditItemTemplate&gt;
   &lt;/asp:TemplateField&gt;
  </code></pre>