默认情况下如何在gridview中显示最后一页 [英] how do I display the last page in gridview by default

查看:145
本文介绍了默认情况下如何在gridview中显示最后一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是:

我想默认显示gridview的最后一页,而不是默认的第一页。我也不想按降序设置网格视图。

例如:我的网格有25条记录,网格页面大小为。 10.所以,我想显示21到25之间的页面作为我的默认网格视图。

Pl帮助。

谢谢,

My problem is:
I want to display the last page of the gridview by default , instead of the default first page. I also don't want to set the grid view in descending order.
For ex: My grid is having 25 records and grid pagesize is. 10. So, I want to display the page from 21 to 25 as my default grid view.
Pl help.
Thanks,

推荐答案

检查以下Q& A.



http://forums.asp.net/t/1293215.aspx?Display+last+page+of+a+Gridview+Programmatically [页+ ^ ]



http: //www.experts-exchange.com/Programming/Languages/.NET/Q_23413185.html [ ^ ]
Check below Q&A .

http://forums.asp.net/t/1293215.aspx?Display+last+page+of+a+Gridview+Programmatically[^]

http://www.experts-exchange.com/Programming/Languages/.NET/Q_23413185.html[^]


使用此:



use this :

GridView1.PageIndex = Int32.MaxValue;


这篇关于默认情况下如何在gridview中显示最后一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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