GridView 分页 - 第一个、最后一个、下一个、上一个 [英] GridView Paging - First, Last, Next, Previous

查看:27
本文介绍了GridView 分页 - 第一个、最后一个、下一个、上一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以添加:

GridView 分页的第一个、最后一个、下一个、上一个"选项?我似乎无法弄清楚.我能得到的只有数字和 >> 表示最后和 <<首先...

"First, Last, Next, Previous" options to the GridView paging? I can't seem to figure it out. All I can get are numbers and >> for last and << for first...

推荐答案

设置 PagerSettings 部分的 PageText 属性值:

<asp:GridView ID="gridView" runat="server" AllowPaging="True">
    <PagerSettings  Mode="NextPreviousFirstLast" FirstPageText="First" PreviousPageText="Previous" NextPageText="Next" LastPageText="Last" />
</asp:GridView>

您也可以从设计器的属性"窗口设置这些值..

You can set these values from the Properties window in the designer too ..

这篇关于GridView 分页 - 第一个、最后一个、下一个、上一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆