In rowupdating event of
After searching long and hard I found a great article that solved my issue.
Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.
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: This course will help prep you to earn the Comp TIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings. 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 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 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.
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).
This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the update operation, whenever this event occurs.
For more information about how to handle events, see Handling and Raising Events.
The event handler receives an argument of type My Sql Row Updating Event Args containing data related to this event.
Status) to Row Updating and / or Row Updated event specifies that remaining rows will be skipped.
Greetings; I have read several of the previous help questions on when the grid View Row Updating event doesn't fire. I subsequently changed the code behind to explicitly bind to the product table during Row Cancel and Row Edit events.
Search for in rowupdating event of:
I have set the requisite attributes in the Grid View tag.