如何计算gridview中包括所有页面的总行(分页)...? [英] How to count total rows in gridview including all the pages(Paging)...?

查看:81
本文介绍了如何计算gridview中包括所有页面的总行(分页)...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



解决方案

我可以给出一个建议.当您从数据库返回数据时,返回1更多的游标包含返回值的计数(行).您可以在代码中使用该值进行分页.


我刚刚在Google中找到了这些

ASP.NET:如何:将行计数列添加到GridView,DataList或Repeater中 [ ^ ]
将总计行添加到GridView [ ^ ]

Hi,

How to count total rows in gridview including all the pages(Paging)...?

解决方案

One suggestion i can give.When you are returning data from database return 1 more cursor with the count of the returned values(row).That value you can use in code for paging.


I just found these in Google

ASP.NET: How To: Add a row count column to a GridView, DataList or Repeater[^]
Add a total row to a GridView[^]


这篇关于如何计算gridview中包括所有页面的总行(分页)...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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