数而不是总和 [英] Count instead of Sum

查看:60
本文介绍了数而不是总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计我的栏目有问题而不是总和。


这可以通过vb.net代码完成,我试过了:


.NumberFormat =" 000"


.NumberFormat =" @"


它转换它但仍然计数而不是总和

解决方案




一般来说,你有计算Sum()并将其绑定到控件。 NumberFormat只是格式,不适用于计算。


请提供更多详细信息。


什么是控制类型?


什么是数据源?


如何将数据绑定到控件?


您的期望/要求是什么?


Guys i'm having troubles with my column it counts instead of sum.

Can this be done through vb.net code, I tried :

.NumberFormat = "000"

.NumberFormat = "@"

It converts it but its still count instead of Sum

解决方案


Generally, you have to calculate the Sum() and bind it to the control. NumberFormat is just format and it doesn't apply calculations.

Kindly provide some more details.

What is the Control Type?

What is the datasource?

How you are binding the data to control?

What is your expectation/requirement?


这篇关于数而不是总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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