title: how to set width of template field in grid view in asp.net
body: <p>i have template field in grid view i want to reduce width to 20 px , how to reduce or set width of a template field in gridview?</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Day Id"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:Label ID="LblDayId" runat="server" Text='&lt;%#DataBinder.Eval(Container.DataItem, "DayId") %&gt;'&gt;&lt;/asp:Label&gt;
                      &lt;/ItemTemplate&gt;
                      &lt;EditItemTemplate&gt;
                          &lt;asp:Label ID="lblEditDayId" runat="server" Text='&lt;%#DataBinder.Eval(Container.DataItem, "DayId") %&gt;'&gt;&lt;/asp:Label&gt;
                      &lt;/EditItemTemplate&gt;
                      &lt;FooterTemplate &gt;
                          &lt;asp:TextBox ID="txtAddDayId" runat="server" ReadOnly="true"&gt;&lt;/asp:TextBox&gt;
                      &lt;/FooterTemplate&gt;
                  &lt;/asp:TemplateField&gt;
  </code></pre>