Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.
In the above tutorial I tried to give you one of the easiest solutions and I hope you can go explore Grid View control editing further after learning the basics from this tutorial.
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.Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database. So, the Row Update event didn't fire because there was no indication of a Row Update existing. LOL Each time through the code behind I was loading and binding my product table. The Row Update event will load a copy of the product table from the database after successfully updating a row. I subsequently changed the code behind to explicitly bind to the product table during Row Cancel and Row Edit events.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. This is becoming so frustrating it's getting almost comical. Breakpoints were triggered for the Row Editing and Row Command. 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. Much thanks to cpkilekofp and informaniac for their time and effort in trying to debug this problem for me.The Edit, Delete and Insert events work as I expect. David 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: With monday.com’s project management tool, you can see what everyone on your team is working in a single glance.