两个datagrid值之间的差异,并将结果显示在新行中 [英] Difference between two datagrid values and display the result in a new row

查看:78
本文介绍了两个datagrid值之间的差异,并将结果显示在新行中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个datagrid,它垂直显示数据库中的表格,如下所示:



I have a datagrid that displays a table from a database vertically as follows :

Scores1     | 75
Scores2     | 100
Difference  | ?





我必须添加一个名为`Difference`的新行,它应显示`Scores1'之间的差异行值& `Scores2`行值。



(PS:差价没有负值)



如何在WPF中实现这一点?



I have to added a new row called "`Difference`" which should display the difference between the `Scores1` row value & the `Scores2` row value.

(P.S : No negative values from the difference)

How to achieve this in WPF?

推荐答案

您好,



请查看以下链接以获取解决方案。你会明白这个操作。

如何从网格位置计算行/列?



谢谢
Hi,

Check the following link for your solution. You willl get the idea to do the operation.
How to calculate row / col from grid position?

Thanks


这篇关于两个datagrid值之间的差异,并将结果显示在新行中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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