Fired event rowupdating which wasn

by  |  11-Nov-2015 20:00

fired event rowupdating which wasn-83

When you click on edit button of the Grid View a Javascript error occurs : “Microsoft JScript runtime error: Sys. Page Request Manager Server Error Exception: The Grid View ‘gd Test’ fired event Row Editing which wasn’t handled.” At first look you may think that you have not handled some events fired by the Grid View. The mystery behind this error is the property “Command Name”.

The simplest solutions for this error is : Just change the “Command Name” property of the “Edit” button from “Edit” to “Edit Row”(or something else which is relevent to you but make sure it is not “Edit”). After scratching my head for sometime I found that the words like “Edit” are reserved to invoke some built in functionality of the Grid View.

Coould it somehow have something to do with me publishing the altered files to my host.

But when i run it and click delete and clicking "yes" to confirm.

You could add On Row Deleting to your Grid View: 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: new handler will look someting like this: I've changed it but it didnt work, I got the same error But I had the Row Deleting="Orders Grid View_Row Deleting" AND the Row Deleted="Orders Grid View_Row Deleted" at first and after reading about rowdeleting , I skipped that one cause I dont want to ask the user if he/she is okay with deleting the row, I just want to delete it.

Community Discussion