Click here to Skip to main content
15,911,132 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 8-Mar-12 1:48am
v2

1 solution

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.

VB
If decFirstValue < decSecondValue Then
   'Add your code that requires the user to fill the remark field
End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900