急,十万火急!!在girdview中PagerTemplate内容不显示

在vs2005中在girdview中PagerTemplate内容不显示

<asp:GridView ID="GV_fuwu" runat="server" AllowPaging="True" AllowSorting="True" OnRowDataBound="GV_fuwu_RowDataBound" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="779px" OnPageIndexChanging="GV_fuwu_PageIndexChanging" OnRowCreated="GV_fuwu_RowCreated">
        <Columns>.......................................</Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EFF3FB" />
        <EditRowStyle BackColor="#2461BF" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
       
        <PagerTemplate>
        <table>
        <tr>
        <td><asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton></td>

        <td><asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton></td>
        </tr>
        </table>
        </PagerTemplate>

</asp:GridView>

为什么能显示PagerTemplate里的内容,我也写AllowPaging="True" AllowSorting="True" ,请各位大侠多多指点,谢谢拉!!!
  

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页