日期:2014-05-16  浏览次数:20435 次

最后一页时,首页和第一页按钮不可用,怎么设置?
asp页面代码

        <asp:GridView ID="gv_WorkLog" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" AllowPaging="True" OnPageIndexChanging="gv_WorkLog_PageIndexChanging"
            PageSize="5" Width="894px" EmptyDataText="没有符合条件的数据!">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="LogDate" HeaderText="填报时间" ItemStyle-Width="10%">
                    <ItemStyle Width="10%"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="UserName" HeaderText="姓名" ItemStyle-Width="10%">
                    <ItemStyle Width="10%"></ItemStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderText="计划">
                    <ItemTemplate>
                        <div align="center">
                            <%# bool.Parse(Eval("PlanSign").ToString()) ? "√" : ""%>
                        </div>
                    </ItemTemplate>
                    <ItemStyle Width="7%" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="单元">
                    <ItemTemplate>
                        <div align="center">
                            <%# bool.Parse(Eval("GroupSign").ToString()) ? "√" : ""%>