title: DropDownList in GridView asp.net
body: <p>I want to add a dropdownlist to every entry in a gridview. </p>
  
  <pre><code>    &lt;asp:GridView ID="GridView1" runat="server"
      AutoGenerateColumns="False" 
          onselectedindexchanged="GridView1_SelectedIndexChanged"&gt;
  
          &lt;Columns&gt;                
            &lt;asp:TemplateField HeaderText="Bank"&gt;
              &lt;ItemTemplate&gt;
                &lt;asp:DropDownList ID="DropDown"
                  AutoPostBack="true" runat="server"  DataTextField="Name" DataValueField="Name" 
                &gt;
                &lt;/asp:DropDownList&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
  
          &lt;/Columns&gt;
      &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>At the back end i have the following code in order to bind a datatable to that dropdown list.</p>
  
  <pre><code>DataTable reader = BusinessLayer.BusinessLayerHandler.GetBankList();
  DropDown.DataSource = reader;
  DropDown.DataTextField = "NAME";
  DropDown.DataValueField = "NAME";
  DropDown.DataBind();
  </code></pre>
  
  <p>My problem is that the drop down list created at the grid view (DropDown) is not found at the back end as if it doesn't exist.. </p>
  
  <p>What can I do?</p>