I am not sure which total value you want to check whether it is changed or not. Just save the original one into Session. When you need to compare, then get it from Session and compare with the new one. Just put the related code into the related event. nothing
special. Like:
'for saving Session("total") = original_total
'for comparing Dim o_total As Integer = Convert.ToInt32(Session("total"))
If o_total <> new_total Then 'doing something End If
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: Gridview: editing one cell and updating based on calculation
Dec 28, 2010 01:29 AM|LINK
Hi richard1970,
I am not sure which total value you want to check whether it is changed or not. Just save the original one into Session. When you need to compare, then get it from Session and compare with the new one. Just put the related code into the related event. nothing special. Like:
'for saving
Session("total") = original_total
'for comparing
Dim o_total As Integer = Convert.ToInt32(Session("total"))
If o_total <> new_total Then
'doing something
End If
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework