如何比较datagridview单元格值? [英] How to compare datagridview cell value?

查看:98
本文介绍了如何比较datagridview单元格值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在开发windows中的datagridview应用程序。

我有比较旧单元格值和新单元格值的问题。

如果新单元格值< 500(旧的单元格值)所以它可以改变,其他明智的没有改变价值。



如何才能再增加两行。



谢谢。



Ankit Agarwal

Hello,

I am developing datagridview application in windows.
I have a problem with compare old cell value and new cell value.
If new cell value < 500 (old cell value) so it could be change,other wise no change value.

How it can be possible for two three more rows.

Thank You.

Ankit Agarwal

推荐答案

创建在编辑事件之后,这通常在属性(e)中具有旧值和新值。比较值并采取适当的措施。
Create an after edit event, this normally has an oldvalue and a newvalue in the attribute (e). Compare the values and take the appropriate action.


这篇关于如何比较datagridview单元格值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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