如何求和到行的最后一个单元格 [英] how get sum in to last cell of row

查看:174
本文介绍了如何求和到行的最后一个单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在vb net中向行末求和,我将一些值输入到datagride中.不在列底部,我需要将其求和到行的最后一个单元格.um不为此使用sql cnctn只需要显示sum.um usng vb.net 2008
请帮助我

i need get sum to end of the row in vb net whem im enter some of values into datagride.not to bottom of column,i need it to last cell of the row.um not usng sql cnctn for this prjct.im need only display sum.um usng vb.net 2008
pls hlp me guys

推荐答案

Compute[^] method may help.


有几种方法可以实现此目的.

您可以将该字段添加到您的SQL查询中,以便它已经在数据源中.
您可以处理数据源,对字段求和并在数据绑定之前添加一列
您可以在网格中添加一列,并通过处理绑定事件来进行计算.
There are several ways to accomplish this.

You could add the field to your SQL query so it will be in the datasource already.
You could process the datasource, sum the fields and add a column before databinding
You could add a column to the grid and do the calculations by handling a binding event.


这篇关于如何求和到行的最后一个单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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