I am trying to do custom paging in the gridview as I really don't like how the control does it automatically.
I only want "Next" and "Last" and no page numbers as there are only going to be a couple of pages showing.
I am using the PagerTemplate.
I then create the linkbuttons on the fly and it all word fine. But the Grid automatically puts the page numbers in as well.
Is there a way to hide the numbers so I only get:
<Next Previous>
Thanks,
Tom
I only want "Next" and "Last" and no page numbers as there are only going to be a couple of pages showing.
I am using the PagerTemplate.
Code:
<PagerTemplate>
<table>
<tr>
<td>
<asp:PlaceHolder ID="ph" runat="server"></asp:PlaceHolder>
</td>
</tr>
</table>
</PagerTemplate>
I then create the linkbuttons on the fly and it all word fine. But the Grid automatically puts the page numbers in as well.
Is there a way to hide the numbers so I only get:
<Next Previous>
Thanks,
Tom