So, the Row Update event didn't fire because there was no indication of a Row Update existing.
When you sign in to comment, IBM will provide your email, first name and last name to DISQUS.
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 subsequently changed the code behind to explicitly bind to the product table during Row Cancel and Row Edit events.
If you have a Grid View that is pulling data from a SQL database using a Select command, And you would like to use Grid View's built-in "Edit, Update, Cancel" command.
However, when the user clicks the Update button you DON'T want to run an SQL UPDATE command on the database, you want to handle it myself. You can just create a dummy SQL query that neverupdates any rows and let it complete, then do the work you want in Row Updating event, the code is like below: Protected Sub Grid View1_Row Updating(By Val sender As Object, By Val e As System.
The Edit, Delete and Insert events work as I expect. The markup and code behind are as follows: 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.
I have a break on the Sub statement for the Row Updating handler ... The Edit and Cancel buttons fire the Row Command event, however, the Update button does not. No breakpoint was triggered when I hit the Update button. I truly appreciate all the suggestions you've given.
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. The routine loading of the product table now happens only on the first pass through the code behind.