如何使用asp.net c#在gridview中抑制行# [英] how to suppress row in gridview using asp.net c#

查看:64
本文介绍了如何使用asp.net c#在gridview中抑制行#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个网格视图显示如下:

需要在网格中添加期初余额和期末余额。

我该如何添加这一行像

AccountNumber DebitAmount CreditAmount
123456789 2500.00 0.00
923456781 0.00

3000.00
523456780 0.00 2000.00
总计 2500.00 5000.00








< tr>


I have one grid view shows like:
need to add opening balance and closing balance in grid .
how can i add this row like

AccountNumber DebitAmount CreditAmount
开户余额 1500.00 0.00
123456789 2500.00 0.00
923456781 0.00
AccountNumber DebitAmount CreditAmount
123456789 2500.00 0.00
923456781 0.00
3000.00
523456780 0.00 2000.00
Total 2500.00 5000.00




AccountNumber DebitAmount CreditAmount
To Opening Balance 1500.00 0.00
123456789 2500.00 0.00
923456781 0.00 3000.00
523456780 0.00 2000.00
Total 4000.00 5000.00
Closing Balance 1000.00 0.00

in above table added opening balance and footer added total and closing balance.
how to add this in gridview.
Thanks.

推荐答案

推荐这些链接



http://www.aspdotnet-suresh.com/2011 /02/how-to-display-sum-of-columns-total-in.html [ ^ ]

HTTP://www.dreaminco de.net/forums/topic/303608-total-gridview-footer-aspnet-c%23/ [ ^ ]



希望这会有所帮助..


这篇关于如何使用asp.net c#在gridview中抑制行#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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