title: Asp.Net set Visibility of Dropdown list inside gridview in aTemplate Field
body: <p>I have a Gridview with Template field</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Scoring"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:DropDownList ID="ddlY_N_NA" runat="server"
              Visible='&lt;%#Eval("IsTextBox")%&gt;' &gt;&lt;/asp:DropDownList&gt;
          &lt;asp:TextBox ID="txtAudit" runat="server"
              Visible='&lt;%#Eval("IsTextBox")%&gt;' &gt;&lt;/asp:TextBox&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt; 
  </code></pre>
  
  <p>I need to set the visibility of drop down based on the visibility of Textbox.
  Either of the two has to be shown per row but not both.
  Can any help me in this.</p>
  
  <p>Thanks in advance.</p>