Do like this,
Add a
template field
with a
hidden field
and bind the
amount
value to it.
whenever you are updating the particular
row
, you can read the
old value from that row's hidden field
. and
new value from the text box
,
then you can
compare
the both.
if both are
different
you can
update
the data else ignore it...
sample code:
TextBox txtAmountValue = (TextBox)GVStartCampaignDetails.Rows[e.RowIndex].FindControl("txtGVSCAmountValue");
HiddenField hdfldGVSCAmountValue = (HiddenField)GVStartCampaignDetails.Rows[e.RowIndex].FindControl("hdfldGVSCAmountValue");
double oldvalue, newvalue;
double.TryParse(txtAmountValue.Text, out newvalue);
double.TryParse(hdfldGVSCAmountValue.Value, out oldvalue);
if (newvalue >= oldvalue)
{
}