title: Data grid View header Height is changing at run time how to fix that?
body: <p>I am Working in ASP VB.net , I have Gridview Bounded With SQL DataSource. I Have to add/delete rows at run time .The Problem Is when there is no Items In grid the header Itself Occupies The Full Height of grid i.e the total height is splited according to number of rows but I need to fix header and row heights , </p>
  
  <pre><code>&lt;asp:GridView ID="grdRequestItems" runat="server" AutoGenerateColumns="False" 
       Height="76pt" Width ="871px"  DataSourceID="SqlDataSource1" 
       style="font-size: 14pt;  table-layout :fixed;" 
       CellPadding="1" HorizontalAlign="Center" PageSize="5" DataKeyNames="TempID" ShowHeaderWhenEmpty="True" AllowPaging="True" &gt;
  </code></pre>
  
  <p>the colums property..</p>
  
  <pre><code>&lt;Columns&gt;
      &lt;asp:BoundField DataField="Sno" HeaderText="Sno"    SortExpression="Sno"&gt;
      &lt;HeaderStyle BackColor="#666666" ForeColor="White" Height="20px" Width="25px" 
       VerticalAlign="Top" Font-Names="Segoe UI"  HorizontalAlign="Center" 
           Font-Size="14pt" /&gt;
  </code></pre>
  
  <p>
            ........
   </p>
  
  <p>other properties are ..</p>
  
  <pre><code>   &lt;EmptyDataRowStyle Height="20pt" VerticalAlign="Top" /&gt;
     &lt;HeaderStyle Font-Names="Segoe UI" Font-Size="14pt" Height="20px" 
        VerticalAlign="Top" HorizontalAlign="Center" /&gt;
     &lt;RowStyle Height="20pt" VerticalAlign="Top" Wrap="True" BackColor="#E6F2FF"  
       FontNames="Segoe UI" Font-Size="12pt" /&gt;
     &lt;SelectedRowStyle BackColor="White" Font-Names="Segoe UI" Font-Size="14pt" /&gt;
     &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Can Anybody Help me ?</p>