title: PagerTemplate does not show when GridView is empty in ASP
body: <p>I am trying to make a small ASP.NET application where I have a GridView with data being accessed from the database. I also have a PagerTemplate that has LinkButtons that allow me to add in a new record to the database. However when the table is empty I am not able to see my Pager controls, but I have no issues if there is a single entry in the table. Is there any way that I can always display the PagerTemplate. Please is a sample of my code.</p>
  
  <pre><code>&lt;asp:GridView ID="gvResults" runat="server" PageSize="10" AutoGenerateColumns="false"
                  CssClass="tablestyle" AllowPaging="true" ShowHeaderWhenEmpty="true"&gt;
                  &lt;AlternatingRowStyle CssClass="altrowstyle" /&gt;
                  &lt;HeaderStyle CssClass="headerstyle" /&gt;
                  &lt;RowStyle CssClass="rowstyle" /&gt;
          ...
  &lt;PagerTemplate&gt;
  &lt;div class="pagers"&gt;
      &lt;table class="pagerTable"&gt;
          &lt;tr&gt;
              &lt;td align="left"&gt;
                 &lt;asp:LinkButton ID="btnInsertMediaRate" runat="server" Text="Add New" OnClick="btnNewMediaRate_Click"&gt;&lt;/asp:LinkButton&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  &lt;/PagerTemplate&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Thanks in advance for your help.</p>