如何在gridview中计算所有记录并在ASP.NET C#中的页脚中显示

问题描述:

亲爱的,祝你有美好的一天.

我有一个显示有成千上万条记录的gridview.并在其中进行了Gridview的分页.

因此,如何在Gridview页脚中显示记录总数.

请解决此解决方案.谢谢

dear all, have a good day.

I have a gridview with thousand of records displayed in it. and gave paging in it for Gridview.

so how to display total number of records in Gridview Footer.

Please solve this solution. Thanks

您好,请访问此链接

http://ajaysr64.blogspot.in/2011/07/how-to-show-sum-at-footer-in-gridview.html [
hello visit on this link

http://ajaysr64.blogspot.in/2011/07/how-to-show-sum-at-footer-in-gridview.html[^]


Ranjith Reddy,

我想如果要在页脚中显示总计,请使用自定义控件.

否则,将使用显示Grid和Footer的逻辑创建自定义控件.
Hi Ranjith Reddy,

I think if you want to display total in footer then use Custom control.

Otherwise create custom control with your logic which display Grid and Footer.