我想以我的格式晒出gridview中的值 [英] i want to sun the value in gridview in my format
问题描述
姓名Partyname贷方余额
----- -------- ------ -----------
aksh Iphone 15000
aksh Iphone 12000
aksh Iphone 18000
aksh Iphone 22000 57000(总数不包括在页脚中)
------ ------------- -------- ------------
57000 (总不包括在这里)
------ ------------- -------- ------------
Name Partyname credit balance
----- -------- ------ -----------
aksh Iphone 15000
aksh Iphone 12000
aksh Iphone 18000
aksh Iphone 22000 57000(the total comes here not in footer)
------ ------------- -------- ------------
57000(total not comes here)
------ ------------- -------- ------------
推荐答案
创建一个带有2列的临时表,第一个col应该是所有总计,第二个col应该是存储过程中所有总计的总和.
create one temp table with 2 columns 1st col should be all totals and 2nd col as sum of the all total in stored procedure.
有关类似的讨论,请参考下面的链接:
如何显示GridView页脚 [在gridview页脚C#中显示总小时数 [ ^ ]
DataGridView上的总行脚数 [如何计算GridView的页脚? [ Gridview的总和列应显示在Gridview底部的最后一行中 [
Refer the links below for similar discussions:
How to display GridView Footer[^]
display total hours in gridview footer C#[^]
Total Row Footer on DataGridView[^]
how to calculate total price in the footer of gridview?[^]
Sum of an Gridview Column should be shown in the last row of Bottom in Gridview[^]
--Amit
这篇关于我想以我的格式晒出gridview中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!