Rowupdating does not fire

The Grid View 'Grid View1' fired event Row Deleting which wasn't handled. When I say manually databinding I mean not using a data source control specified as a Data Source ID, but rather setting the Grid View’s Data Source equal to the appropriate data object and calling Data Bind. NET 2.0 are familiar with how to deal with this, but since ASP.NET 2.0 most of the examples and tutorials deal with setting the Data Source ID, which buys you a lot of automation that you may not even appreciate unless you’ve done this the old fashioned way.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.

I came across a very interesting error while using buttons/link buttons in the Grid View for editing the Grid View rows data.

The exact situation I faced is like this – I have a Grid View with a column which contains an edit button.

Then in the code behind I have handled the On Row Command event.

In the event handler function I have checked for the Command Name property and write necessary code for each of the actions.

The button is associated with the Command Name property as “Edit”.

Comments