1
A
回答
0
所以你正在尋找特定頁面上的總行數?
如果是這樣,您不應該試圖從GridView
中找到該信息,而應該查看您綁定GridView
的底層DataSource
。
例如,
List<SomeObjects> lst = GetYourData();
yourGrid.DataSource = lst;
yourGrid.DataBind();
// if you want to get the count for a specific page
int currentPage = 2;
int countForPage2 = (lst.Count > currentPage * totalItemsPerPage)) ?
totalItemsPerPage : lst.Count - ((currentPage - 1) * totalItemsPerPage);
相關問題
- 1. 多頁GridView
- 2. Gridview中的多個頁眉
- 3. 打印多頁面gridview
- 4. ASP.NET添加多個頁腳行的GridView
- 5. 多的GridView在一個頁面
- 6. GridView的分頁
- 7. 分頁的gridview
- 8. 分頁的GridView
- 9. 添加多個頁腳行到Gridview
- 10. gridview分頁
- 11. asp.net gridview分頁
- 12. asp.net gridview分頁
- 13. Gridview分頁
- 14. gridview頁腳
- 15. Gridview頁腳
- 16. DataList中的GridView的分頁
- 17. 對於Gridview分頁的Css
- 18. GridView中的頁碼太遠
- 19. 過濾後的Gridview分頁
- 20. 在GridView的頁眉模板
- 21. ASP.NET的GridView分頁問題
- 22. 在android中的Gridview分頁
- 23. GridView的分頁 - 不工作
- 24. C中的GridView分頁#
- 25. 有關GridView分頁的Asp.net
- 26. 的GridView每頁不顯示
- 27. Gridview上的Grandtotal頁面
- 28. 如何分頁的GridView
- 29. UpdatePanel中的GridView分頁
- 30. 的GridView分頁問題