title: Can not set ASP.Net Gridview Template Column width to 0
body: <p>In a asp.net grid view I have add a TemplateColumn and I need to set its width to 0, Even if I set it in HTML code or code behind when it displayed it in browser it has a width. How to solve this?</p>
  
  <p><strong><em>HTML</em></strong></p>
  
  <pre><code>&lt;asp:TemplateField Visible="False" ControlStyle-Width="0"&gt;
              &lt;HeaderStyle BorderWidth="0" Width="0"&gt;&lt;/HeaderStyle&gt;
              &lt;ItemStyle BorderWidth="0" Width="0"&gt;&lt;/ItemStyle&gt;
              &lt;FooterStyle BorderWidth="0" Width="0"&gt;&lt;/FooterStyle&gt;
              &lt;ItemTemplate&gt;
                  &lt;itemstyle width="0" /&gt;
                  &lt;asp:PlaceHolder ID="ExpandedContent" Visible="false" runat="server"&gt;&lt;/td&gt; &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td class="label" colspan="2" align="left"&gt;
                      Test&lt;/asp:PlaceHolder&gt;
                  &lt;/td&gt; &lt;/tr&gt;
              &lt;/ItemTemplate&gt;
              &lt;FooterStyle BorderWidth="0px" Width="0px" /&gt;
          &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p><strong><em>Output HTML</em></strong></p>
  
  <p><img src="https://i.stack.imgur.com/JpltL.gif" alt="output"></p>
  
  <p><strong><em>Output</em></strong></p>
  
  <p><img src="https://i.stack.imgur.com/3chVr.gif" alt="enter image description here"></p>