与网格视图相关的查询 [英] query related to grid view

查看:54
本文介绍了与网格视图相关的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在gridview中将数量列相加并将其放在第一行...而不是在footer..in .net中。 Rply尽快

i want to know how can i sum quantity column in gridview and place it in first row...not in footer..in .net. Rply ASAP

推荐答案

看看这个例子..

http://social.msdn.microsoft.com/Forums/eu/csharpgeneral/thread/52a66676-cffb-4ec7-821a-ec2d3deb90c0 [ ^ ]



如果有帮助的话。标记为接受!!
have a look at this example..
http://social.msdn.microsoft.com/Forums/eu/csharpgeneral/thread/52a66676-cffb-4ec7-821a-ec2d3deb90c0[^]

if it helps. mark me as a accepted!!


可以有很多方法可以做到这一点,但其中一个是:



你必须最后使用Datatable来填充GridView。只需在该数据表顶部添加一行,然后在第一列中计算总和为''列$



我想,这可以解决您的问题。
There can be many way of doing this but one of then is:

You must be using Datatable at the end, to fill the GridView. Just add one row at the top of that datatable and calculate sum in the first for''s column

I guess, this can solve your problem.


这篇关于与网格视图相关的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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