【发布时间】:2017-03-30 21:17:36
【问题描述】:
在GridView中启用AllowPaging时,可以在PagerSettings中设置4种不同类型的display modes。
<PagerSettings Mode="NextPreviousFirstLast" FirstPageText="First" LastPageText="Last" PageButtonCount="5" Position="Bottom" />
这些类型是
NextPrevious : Previous-page and next-page buttons.
NextPreviousFirstLast: Previous-page, next-page, first-page, and last-page buttons.
Numeric : Numbered link buttons to access pages directly.
NumericFirstLast : Numbered and first-link and last-link buttons.
看起来像这样
< >
Fist < > Last
1 2 3 4
1 2 3 4 Last
但我想要的是所有页码,然后是“查看全部”或“显示全部”按钮来显示所有网格行。
1 2 3 4 - Show All
这可能吗?
【问题讨论】:
标签: c# asp.net .net gridview pagination