[英]Display row count result per page in gridview - ASP.Net
I have a gridview1 that has a page size 20 per page, and I bind it with a data with a total of 59 results, so it has 3 pages, the third page has 19 rows. 我有一个gridview1,每页有20页的页面大小,我用一个总共59个结果的数据绑定它,所以它有3页,第三页有19行。
I know how to display the row count (20 (p1),20(p2),19(p3)) and the total count which is 59, but how can I achieve this result? 我知道如何显示行数(20(p1),20(p2),19(p3))和总计数为59,但我怎样才能实现这个结果?
1 is 20
2 is 21~40
3 is 41~59
Where page 1 will display 20, as its first result, and 21~40 on the second page and 41~59 to the 3rd page. 第1页将显示20,作为第一个结果,第二页显示21~40,第3页为41~59。
您需要实现虚拟分页,它将仅绑定20行到网格并显示网格页脚中的记录总数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.