The value in the dbms can only be different if the user has changed it, so either select it from dbms again or - better - use the OldValues
Dictionary
from GridViewUpdateEventArgs
.
void GridView_RowUpdating(Object sender, GridViewUpdateEventArgs e)
{
String fieldName = "FooColumn";
Object oldValue = e.OldValues[fieldName];
}
The OldValues property is automatically populated with the original
values of all the field name/value pairs in the row. A separate entry
is added to the OldValues property for each field in the row.