In my custom grid View control I cannot raise the Row Updated event.I have tried to add an event handler to the Row Updated event of my custom control but it is not called.
I have loads of codes here, because ive tried every way possible. Public Sub GV_Student Record_Row Editing(By Val sender As Object, By Val e As System.
Then i want the user to be able to edit any row in the gridview, so i did this: Now I know i hav to use Row Editing event, Row Updating Event, Row Canceling Edit event to make everything work. I hoping someone could point me in the right direction on how to use these 3 events, what syntax/coding should i use to handle these 3 events.
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. Data Bind in the Row Command when the Edit Command is invoked and removed it from Row Editing.
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: 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.
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.
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.
Greetings; I have read several of the previous help questions on when the grid View Row Updating event doesn't fire. The routine loading of the product table now happens only on the first pass through the code behind.
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 code works as I intended it to (and is listed below).
I have a Grid View that, for some odd reason, seams to fire twice with I click the "Update" linkbutton. The first time through it perfroms the update, then it tries a second time to do the update again, except the 2nd time around there are no form values to pass so it errors out.