如何使用复选框在网格视图中求和 [英] how can Sum Rows in Grid view using check box
本文介绍了如何使用复选框在网格视图中求和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有三栏
1 - 酒店余额
2 - 客户余额
3-Net(酒店 - 网络)
如何使用网格视图来完成它特别是在编辑模式下
如何如果我在网格视图中检查这一行,我可以收集行值
我可以做向导还是必须编程
i have three columns
1-Hotel Balance
2-Client Balance
3-Net (Hotel - Net )
how i can do it using grid view Specially when in Edit Mode
how can i collect rows values if i check this row in a grid view
can i doing it wizard or must programmatic
id Check HotelBalance ClientBalance Net
1 1000 600
2 @THIS 7000 6000 1000
3 5000 200
4 10000 5000
Total 7000 6000 1000
另一个案例
another Case
id Check HotelBalance ClientBalance Net
1 @THIS 1000 600 400
2 7000 6000
3 5000 200
4 10000 5000
Total 1000 600 400
检查所有行
Check All Rows
id Check HotelBalance ClientBalance Net
All
1 1000 600
2 7000 6000
3 5000 200
4 10000 5000
Total 23000 11800 11200
推荐答案
首先,请阅读我的评论。
这是一个想法:
Gridview中的所选项目总数 [ ^ ]
教程15:显示摘要信息GridView的页脚 [ ^ ]
ASP.NET 2.0的GridView示例:在页脚中显示摘要数据 [ ^ ]
GridView all in one [ ^ ]
此主题中的更多示例链接:
如何计算.net中gridview列的总和 [ ^ ]
First of all, please read my comment.
Here is an idea:
Total of Selected Items in Gridview[^]
Tutorial 15: Displaying Summary Information in the GridView's Footer[^]
GridView Examples for ASP.NET 2.0: Displaying Summary Data in the Footer[^]
GridView all in one[^]
More example links in this thread:
how to calculate sum of gridview columns in .net[^]
这篇关于如何使用复选框在网格视图中求和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文