在gridview中比较2个字段的值. [英] Compare 2 field value in gridview.
本文介绍了在gridview中比较2个字段的值.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以知道如何比较gridview中2个字段的值吗..1个字段已经有数据(来自数据库),
另一个需要输入..so,如果值小于数据库值,我想进行比较,用户需要填写备注字段.
May I know how to compare the value of 2 fields in gridview..1 field already have data(from database),
another is need to key in ..so i would like to compare if the value is lower than the database value, user need to field the remark field.
推荐答案
你有麻烦吗?您可以张贴到目前为止尝试过的代码,并解释为什么它不起作用吗?听起来像是使用IF语句进行的简单比较.
What are you having trouble with? Can you post the code you have tried so far, and explain why it isn''t working? It sounds like a simple compare using an IF statement.
If decFirstValue < decSecondValue Then
'Add your code that requires the user to fill the remark field
End If
这篇关于在gridview中比较2个字段的值.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文