What happens with this is that the source is being created every time the user submits the page.
This means that when the user does an update, the data from that update is lost.
Greetings; I have read several of the previous help questions on when the grid View Row Updating event doesn't fire. The Row Update event will load a copy of the product table from the database after successfully updating a row.
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 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.
Within the Item Template I have an Image Buttong with a Command Name of "Edit".I have a web application that shows a controls group based on a result set from a database.I don't know how many controls do I have to create and I don't know what kind of control will it be. I know that the problem is that I create the controls in the Page_Load.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).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. before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value). Every one can use it to compare the new value with old ones.I have set the requisite attributes in the Grid View tag. (Note, in the gridview the One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event... 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.