Gridview rowupdating event not

Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S. Data Bind in the Row Command when the Edit Command is invoked and removed it from Row Editing. The code works as I intended it to (and is listed below).

Hi cpkilekofp; I removed the Insert command button and put in an event for Command to see if the Update button press in the grid View control would trigger the Command event - it did not. My markup and code look as follows and the Update event is not firing: Hi cpkilekofp; I removed the On Row Updating from the Grid View definition - to no avail. David I added a stub for the grid View Row Command event and set a breakpoint. Placed breakpoints at Row Command, Row Editing and Row Updating. Much thanks to cpkilekofp and informaniac for their time and effort in trying to debug this problem for me.

David I suggested that the Row Updating function was being blocked by the . Data Bind() in the Row Command event so that only the Edit command will activate it (take it out of Row Editing). Twice for Row Command (1 for Row Editing and 1 for Row Canceling) and once for Row Editing. I am going to try and create this not as a web application but rather as a website and see if I notice any differences.

Data Bind() in Row Editing, I said nothing about what might happen if you removed it. Then set your breakpoints in Row Command, Row Editing, and Row Updating and we'll see what happens. David OK, I'm offically out of bullets, at least for now. If I get some time, I'll see if I can duplicate this, but I'm suspecting there's something out there that neither of us have looked at yet.

I am confused at this point on why my markup and code behind is not touching the Row Updating event when Update button is clicked. So, the Row Update event didn't fire because there was no indication of a Row Update existing.

I also don't understand when I select the grid View control and look at the events in the Properties window of Visual Studio 2010 why I see all the proper event procedures listed for each event I expect to use. I subsequently changed the code behind to explicitly bind to the product table during Row Cancel and Row Edit events.

Hi all, I can't seem to find a post relating to the Row Updated event not firing.

I have tried to not override in control and instead use delegates like I described in ...

When I click on the edit button the update and cancel button appear.

I have tried to add an event handler to the Row Updated event of my custom control but it is not called.

I have tried to override On Row Updated in my custom control, but the breakpoint never gets hit.

Leave a Reply