Fired event rowupdating which wasn

This is because, I haven't found any solution that matches my problem, even though many of them are on the same lines. When the application was in the Edit state, I accidentally clicked on the "Update" button in my user control... so I clicked on Edit button and then clicked on the Update button (all the while my application was in the Edit state only) and the "Update events" was raised mysteriously!When I use my user control in an or in an file, Row Updating and the Row Updated events are not at all fired. My user control inherits from "Web Control" and NOT from Grid View PS. I repeated this multiple times and each and everytime I amused myself by seeing the Update button work even without doing anything!The Row Updating event is raised when a row's Update button is clicked, but before the Grid View control updates the row.This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

- These internal user controls may either have or do not have the update panels. I know the above architecture is little screwed up and is also heavy for a web project.

And because of this I am unable to update the data. This XML file is converted into a data table and then is bound to the grid view. There are mutliple update panels in the parent files and files in which this user control is being used. I am a happy man now that my user control is working...

But Row Editing and Row Canceling Edit events are fired without any problem. I have the following code in my user control: using System; using System. but I am a lot more confused now than before when the Edit event was raised when Update button was clicked.

Even the Row Command event is fired without any issues. Now the Update button raises the update event when the application NOT IN the View state automatically, which accidentally also happens to be the correct way of working for my user control!

If I check the "Command Name" in the Row Command event, then I see that for each and every (AJAX) post back that is happening, when I click on "Update" Link button, "Edit" command is called. I need to create the user control entirely from the code behind file and hence no mark-up is allowed! Well, I concluded that there is some mysterial relationship between the Edit state of the application and my user control.

Leave a Reply