Rowupdating which wasn t

Posted by / 24-Jun-2020 07:05

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.

So when we use these special key words as the Command Name for the buttons in the Grid View, they automatically invoke the built in functionality of the Grid View when we click on the button.

everything works perfectly without raising any exception. perhaps setting the rowupdated event handler need also the rowupdating event handler (I didn't check it out at the moment) I still get the same error.

There must be a way to disable these events like On Row Updating=null.

If I do not provide it, I will get the error "Grid View 'dgd_Alerts' fired event Row Updating which wasn't handled".

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”.Row editing and Row canceling editing working fine; but when I press update after changing the value in textbox, it show the old value not that value that I have change. There are similar questions on Stackoverflow and other websites, but I seem to miss something. I am using a Gridview with the On ROWCOMMAND to handle all update operations.When a row is update the ONROWCOMMAND is performed but I am getting an error message saying "The Grid View 'dgd_Alerts' fired event Row Updating which wasn't handled." Why do I need an event for the On ROWUPDATING and how I can prevent this message from appearing?

rowupdating which wasn t-76rowupdating which wasn t-90rowupdating which wasn t-89

Hi there, Edit and Delete command names are reserved names and will trigger the events mentioned that your code isn't handling.

One thought on “rowupdating which wasn t”