Code for rowupdating in gridview
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.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. 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).
Last line of the following code is calling a local method for updating the database and passing all the parameters to this method.
I subsequently changed the code behind to explicitly bind to the product table during Row Cancel and Row Edit events.
So, the Row Update event didn't fire because there was no indication of a Row Update existing.
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.