Rowupdated vs rowupdating

I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.to modify update behavior before it happens, to provide additional handling when an update will occur, to retain a reference to an updated row, to cancel the current update and schedule it for a batch process to be processed later, and so on. ' Assumes that connection is a valid Sql Connection object. I have set the requisite attributes in the Grid View tag. (Note, in the gridview the Enable View State="False" - if I set it to True I get the standard "Failed to load viewstate. error) One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event...

Leave a Reply