sqwerty
sqwerty

Reputation: 1773

ASP.NET GridView e.NewValues == e.OldValues

Why would a GridView control's RowUpdating/RowUpdated event arguments have NewValues == OldValues regardless of user input?

Upvotes: 1

Views: 1291

Answers (1)

sqwerty
sqwerty

Reputation: 1773

I've found the answer to this now after some poking and rearranging.

Seemingly it was a DataBind in page load that was resetting the new values to the old ones before the event handler. Should have guessed.... :)

Upvotes: 1

Related Questions