title: How to bind static dropdownlist on gridview edit
body: <p>I want to place a static dorpdownlist to EditItemTemplate of the GridView.</p>
  
  <pre><code>&lt;EditItemTemplate&gt;
    &lt;%--&lt;asp:TextBox ID="txtSuppstatus" Width="40px" runat="server" Text='&lt;%#Eval("Suppstatus") %&gt;' /&gt;--%&gt;     
      &lt;asp:DropDownList ID="ddlSuppstatus" AutoPostBack="true" runat="server" SelectedValue='&lt;%#Eval("Suppstatus") %&gt;'&gt;
           &lt;asp:ListItem Text="YES" Value="Y"&gt;&lt;/asp:ListItem&gt;
           &lt;asp:ListItem Text="NO" Value="N"&gt;&lt;/asp:ListItem&gt;
     &lt;/asp:DropDownList&gt;
  &lt;/EditItemTemplate&gt; 
  </code></pre>
  
  <p>When page will load YES or NO option will show as a text but when user will edit the row on click on Edit it will show dorpdownlist with YES and NO option.</p>
  
  <p>Dropdownlist is binding on edit but i am loosing all the data at the time of edit.</p>
  
  <p>I have gone through to this <a href="http://forums.asp.net/t/1587128.aspx?DropDownList%20in%20GridView%20Edit%20Mode%20Set%20Default%20Value" rel="nofollow noreferrer">link</a> but facing the same problem. rest all the control is getting blank and dropdownlist is binding with YES and No option.</p>
  
  <p>on page load </p>
  
  <p><img src="https://i.stack.imgur.com/mMqf4.png" alt="enter image description here"></p>
  
  <p>after edit</p>
  
  <p><img src="https://i.stack.imgur.com/STHVm.png" alt="enter image description here"></p>
  
  <p>Please help me how to solve this.</p>