I had a read through the link you posted but a lot of it confused me :( From what i have posted so far, are you able to see where the problem is?
This enables you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.A Grid View Edit Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the edit operation should be canceled.C# codebehind - I'm not really deleting the row from the database but it's a test: protected void Orders Grid View_Row Deleted(object sender, System. It looks like you are handling the "onrowdeleted" event, not the "Row Deleting" event in your markup, change: onrowdeleted="Orders Grid View_Row Deleted" to Row Deleting="Orders Grid View_Row Deleting" Look a the docs for this event: you will also see that your handler's signature will need to change: msdn.microsoft.com/en-us/library/system.... The Row Deleting probally lets you Cancel the event.Description: An unhandled exception occurred during the execution of the current web request. Http Exception: The Grid View 'Grid View1' fired event Row Editing which wasn't handled. Please review the stack trace for more information about the error and where it originated in the code. Source Error: An unhandled exception was generated during the execution of the current web request. Handle Event(Event Args e, Boolean causes Validation, String validation Group) 690 System.