title: EditTemplate property of asp:GridView control
body: <p>I have a asp:GridView and in there i have two columns , in one column i want to show label
  but when i click an sdit button i want to show a drop down list in that particular column,
  i have created the grid view like following:</p>
  
  <pre><code>&lt;bw:GridView ID="grdProducts" AllowPaging="True" PageSize="5" AllowSorting="True" 
    CssClass="DGTable" runat="server" AutoGenerateColumns="False" DataKeyNames="LinkedProductCode"
    RowSelectingEnabled="True" RowStyle-CssClass="DGItem" SelectedRowStyle-CssClass="DGSelectedItem"
    FooterStyle-CssClass="DGFooterTR"  EditRowStyle-CssClass="DGEditItemValidator" &gt;
    &lt;Columns&gt;
      &lt;asp:BoundField DataField="LinkedProductCode" HeaderText="Product Code" ReadOnly="true" meta:resourcekey="BoundFieldResource4" /&gt;                                        
      &lt;asp:TemplateField  HeaderText="Product Type" ItemStyle-VerticalAlign="Top"&gt;
       &lt;ItemTemplate&gt;
       &lt;asp:Label ID="lbl1" runat="server" Text='&lt;%# Bind("LinkedProductType")%&gt;' /&gt; 
      &lt;/ItemTemplate&gt;
       &lt;EditItemTemplate &gt;
         &lt;asp:DropDownList ID="linkedproductList" runat="server" DataSourceID="list"&gt;
         &lt;/asp:DropDownList&gt;
       &lt;/EditItemTemplate&gt;
      &lt;/asp:TemplateField&gt;                                        
    &lt;/Columns&gt;
    &lt;SelectedRowStyle CssClass="DGSelectedItem" /&gt;
    &lt;PagerStyle CssClass="DGPagerTR" /&gt;
    &lt;HeaderStyle CssClass="DGHeaderTR" /&gt;
  &lt;/bw:GridView&gt;
  </code></pre>
  
  <p>what should i do to do it? What should i write in edit button's click event?
  Please help..</p>