如何在gridview中显示新列中的总金额 [英] how to display the total amount in new column in gridview

查看:71
本文介绍了如何在gridview中显示新列中的总金额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在gridview中添加工资列,并在另一个新列中显示工资总额,如下所示..



gridview 1:计算前



I want to add the salary column in gridview and display the total of salary in another new column like this..

gridview 1:Before calculation

Name / Salary
sss  / 1000
ddd  / 1000
ggg  / 1000





当我按下计算按钮时,这样的网格视图显示





when i press the calcution button the grid view display like this

Name / Salary  / Total
sss  / 1000
ddd  / 1000
ggg  / 1000  / 3000

推荐答案

创建一个数据表,然后在第3列中将值放在最后一行。
create a datatable,then in 3rd column put the value at last row.


这篇关于如何在gridview中显示新列中的总金额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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