Asp.net 使asp:datagrid中的分页页脚位于网格的页脚上,而与网格大小无关

Asp.net 使asp:datagrid中的分页页脚位于网格的页脚上,而与网格大小无关,asp.net,aspxgridview,Asp.net,Aspxgridview,我是asp.net新手。我对asp:datagrid有问题。 网格中的分页页脚PagerStyle始终位于网格的底部。我希望页面样式固定在asp:datagrid的页脚处 我当前的代码 <asp:datagrid id="grdPageTemplate"> <!-- Code to make the columns of my grid--> <PagerStyle HorizontalAlign="Right" Mode="NumericPages" Posit

我是asp.net新手。我对asp:datagrid有问题。 网格中的分页页脚PagerStyle始终位于网格的底部。我希望页面样式固定在asp:datagrid的页脚处

我当前的代码

 <asp:datagrid id="grdPageTemplate">
<!-- Code to make the columns of my grid-->
<PagerStyle HorizontalAlign="Right" Mode="NumericPages" Position="Bottom" CssClass="footer"></PagerStyle>

@vaibhav.pnd请发布完整的asp:datagrid代码。 同时,仅对于寻呼机,请将以下属性与代码一起使用

<asp:datagrid ID="grdPageTemplate" runat="server" Width="100%" ShowFooter="False" AllowPaging="True" PageSize="10">
    <!-- Code to make the columns of my grid-->
    <PagerSettings Position="Bottom" Mode="NumericFirstLast" />
    </asp:datagrid>

这与经典ASP无关。请重新标记。
<asp:datagrid ID="grdPageTemplate" runat="server" Width="100%" ShowFooter="False" AllowPaging="True" PageSize="10">
    <!-- Code to make the columns of my grid-->
    <PagerSettings Position="Bottom" Mode="NumericFirstLast" />
    </asp:datagrid>