1

我有一个带有寻呼机的gridview。寻呼机显示 10 个页码块(1...10、11...20 等)。

我想要实现的是,当用户单击页码时,寻呼机中的数字将重新对齐,以便所选页面位于列表的中间。例如:如果用户选择第 10 页,则寻呼机中的数字将是:

6 7 8 9 10 11 12 13 14 15

目前,它显示:

1 2 3 4 5 6 7 8 9 10 ...

用户到达第 11 页的唯一方法是单击 3 个点 (...)。

怎样才能做到这一点?

谢谢!

4

1 回答 1

0

Here is an article explaining how you can customize the gridview's page, http://kikosantos.net/tech/2006/05/custom-paging-in-gridview-control/. From here, you should be able to customize the paging template to make the changes you desire.

Another example of custom paging: http://dotnetslackers.com/articles/gridview/Custom-GridView-with-Paging-and-Filtering.aspx

And one more: http://www.dotnetcurry.com/ShowArticle.aspx?ID=339

于 2011-03-18T13:29:40.070 回答