title: custom paging on gridview control
body: <p>below code works fine if i remove the <strong>PagerSetting</strong> or remove <strong>PagerTemplate</strong> so if i have both (<strong>PagerSetting</strong> &amp; <strong>PagerTemplate</strong>) then my page number is not display.</p>
  
  <p>my qeustion is: how can i display both <strong>(PagerTemplate and PagerSetting</strong>) togather at the bottom of the Gridview ? plese see the below source code.</p>
  
  <pre><code>&lt;asp:GridView ID="gvTable" runat="server" ShowHeader="true"     
    PageSize="5" AllowPaging="true" AllowSorting="true"     
    DataSourceID="myLinqDataSource" AutoGenerateColumns="false"     
    OnRowDataBound="GridView_DataBound"&gt;     
    &lt;Columns&gt;     
      &lt;asp:BoundField DataField="Edited" HeaderText="Date" DataFormatString="{0:d}" /&gt;     
      &lt;asp:BoundField DataField="Activity" HeaderText="Notes" /&gt;     
    &lt;/Columns&gt;     
  &lt;PagerStyle CssClass="pager-row" /&gt;    
                      &lt;RowStyle CssClass="row" /&gt;    
                      &lt;PagerSettings Mode="NumericFirstLast" PageButtonCount="7" FirstPageText="«" LastPageText="»" /&gt;    
                     **&lt;PagerTemplate&gt;**     
                          &lt;div style="float: left; margin-left: 12px;"&gt;    
                              &lt;div style="float: left; margin: 4px 6px 0px 0px;"&gt;Page Size&lt;/div&gt;    
                              &lt;asp:DropDownList ID="ddlPageSizeChange" runat="server" AutoPostBack="true" OnSelectedIndexChanged="PageSizeChange"&gt;    
                                  &lt;asp:ListItem&gt;15&lt;/asp:ListItem&gt;    
                                  &lt;asp:ListItem&gt;25&lt;/asp:ListItem&gt;    
                                  &lt;asp:ListItem&gt;50&lt;/asp:ListItem&gt;    
                                  &lt;asp:ListItem&gt;100&lt;/asp:ListItem&gt;    
                              &lt;/asp:DropDownList&gt;    
                          &lt;/div&gt;    
                          &lt;div class="gridCount" runat="server" id="divGridCount"&gt;&lt;b&gt;1&lt;/b&gt; Items Found  &lt;/div&gt;    
                      &lt;/PagerTemplate&gt;      
  &lt;/asp:GridView&gt;  
  </code></pre>
  
  <p><strong>UPDATE 1:</strong></p>
  
  <p>I able to display paging 1 2 3 4 5... but the problem is: i can not have both PagerSetting &amp; PagerTemplate and if i have both(PagerSetting &amp; PagerTemplate) in my gridview my paging (1 2 3 4 5) is not displaying and if i remove PagerTemplate than my paging is displaying (1 2 3 4 5...)  make sense?</p>
  
  <p>UPDATE:</p>
  
  <p>Here is what i am trying to get:</p>
  
  <p><strong>&lt;&lt; &lt; 1 2 3 4 5 ..... > >></strong>    <strong><em>Total Pages Found 80</em></strong>  - Page 1/80  - PageSize {15,25,50,10} (this will be a dropdownlist)</p>