如何在数据网格中找到总和 [英] how find sum in datagrid

查看:59
本文介绍了如何在数据网格中找到总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在datagrid中逐行求和? pls帮我.我正在使用vb.net

解决方案

一种方法是使用RowDataBound事件并保留一个私有变量直到看到FooterRow为止的总运行量.或者,使用SQL SQL-具有总计列和行总数的数据透视表 [ ^ ]

,这可能对您有帮助
此处 [ 解决方案

One was is to use the RowDataBound event and have a private variable that you keep a running total of until you see the FooterRow. Or, do it in SQL, SQL - Pivot with Grand Total Column and Row[^]


go through this link, this may helps you
Here[^]
Thanks
--RA


you can use while loop its easy ,,,,,,,,,,,,,


这篇关于如何在数据网格中找到总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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