问题
I need to show the amount of Sub Total in my project but I do not know how to show it in the gridview and amount of Sub Total. Can someone help me please? I need to show it like this :
Teacher Name Class A Class B Class C
Mia 23 32 24
35 35 20
----------------------
Sub Total : 58 67 44
----------------------
Stephen 36 25 34
22 31 19
----------------------
Sub Total : 58 56 43
----------------------
Total : 116 123 87
回答1:
yes you can achive this you need to follow the details given in this article : Group Total, Grand Total in GridView
After end you will get yoru grid like
来源:https://stackoverflow.com/questions/10024761/total-up-subtotal-in-gridview