Gridview rowupdating cancel update


If validation fails I then what to stop the grid's Row Updating event firing but there seems no way to do this!?Change the Command Name on 'button Update' from 'Update' to something like 'rename'. You can then add some code in the Row Command event to handle the validation and updating of record e.g.

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.If user click 'No', abort the server event (Row Updating).If user choose 'yes', call server event to update into database.Within the Item Template I have an Image Buttong with a Command Name of "Edit".This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.To Date Time(Start Date Str) End Date = Format(Date Add(Date Interval.

You must have an account to comment. Please register or login here!