title: Cant find a combobox control in edittemplate in Gridview
body: <p>I am trying to find this control in the Gridview's edititemtemplate section.</p>
  
  <pre><code>  &lt;EditItemTemplate&gt;
                      &lt;ajaxToolkit:ComboBox ID="GridviewCategoryComboBox1"  AppendDataBoundItems="true" runat="server" AutoCompleteMode="Suggest" DataSourceID="GridViewCategorySqlDataSource1" DataTextField="Name" DataValueField="Id" MaxLength="0" Style="display: inline;"&gt;
          &lt;asp:ListItem&gt;Select Category&lt;/asp:ListItem&gt;
      &lt;/ajaxToolkit:ComboBox&gt;
  </code></pre>
  
  <p>
  Here is the event handler where I try to fetch the control that is in the edititem template.</p>
  
  <pre><code>  protected void GridView1_RowEditing(object sender, GridViewEditEventArgs 
  
  e)
          {
              GridView1.EditIndex = e.NewEditIndex;
              int id = (int)GridView1.DataKeys[e.NewEditIndex].Value;
  
              ComboBox ddl = GridView1.Rows[e.NewEditIndex].Cells[1].FindControl("GridviewCategoryComboBox1") as ComboBox;
  }
  </code></pre>
  
  <p>It returns null, no matter who I try to find it.</p>
  
  <p>I also tried other variations such as this:</p>
  
  <pre><code>ComboBox ddl = GridView1.Rows[e.NewEditIndex].FindControl("GridviewCategoryComboBox1") as ComboBox;
  </code></pre>