title: how to find control in edit item template?
body: <p>i have a gridview on the form and have some template field, one of them is:</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Country" HeaderStyle-HorizontalAlign="Left"&gt;
      &lt;EditItemTemplate&gt;
          &lt;asp:DropDownList ID="DdlCountry" runat="server" DataTextField="Country" DataValueField="Sno"&gt;
          &lt;/asp:DropDownList&gt;
      &lt;/EditItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>now on the RowEditing event i need to get the selected value of dropdownlist of country and then i will set that value as Ddlcountry.selectedvalue=value; so that when dropdownlist of edit item template appears it will show the selected value not the 0 index of dropdownlist. but i am unable to get the value of dropdown list.
  i have tried this already:</p>
  
  <pre><code>int index = e.NewEditIndex;
  DropDownList DdlCountry = GridView1.Rows[index].FindControl("DdlCountry") as DropDownList;
  </code></pre>
  
  <p>need help please.
  thanx.</p>