dataGridView中的简单数学逐行,然后显示在textBox中 [英] Simple math in dataGridView row by row then display in textBox

查看:86
本文介绍了dataGridView中的简单数学逐行,然后显示在textBox中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一直在考虑做datagridview数学的最佳方法是什么。我有这个datagridview,我需要逐行乘以列castka。与počet然后+下一行然后+下一行,直到Im结束,然后在textBox中显示最终值。因为我是c#和sql的初学者,我想先与你讨论这个问题。 (欢迎代码:))



提前多谢。

ve been thinking about what is the best way to do my datagridview math. I have this datagridview which I need to go row by row multiplying column "castka" with počet" and then + the next row then + next row until Im on the end and then display the final value in textBox. As I'm beginner in c# and sql I wanted to discuss this with you for first. (codes are welcome :) )

Thanks so much in advance.

推荐答案

参考此链接并记得用乘法代替求和。



在asp.net中的gridview页脚中显示总列数的总和 [ ^ ]



问候......:笑:
Refer to this link and remember to replace summation with multiplication.

Display sum of columns total in gridview footer in asp.net[^]

Regards.. :laugh:


这篇关于dataGridView中的简单数学逐行,然后显示在textBox中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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