Rowupdating not triggered
All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.
Check out what I’m trying to do, maybe you can help?
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.
You can also indicate whether the exception was handled in the event-handling method by setting the Exception Handled property of the Grid View Updated Event Args object.
For more information about how to handle events, see Handling and Raising Events.
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.
This enables you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.
This is becoming so frustrating it's getting almost comical. Breakpoints were triggered for the Row Editing and Row Command.
David I suggested that the Row Updating function was being blocked by the . Data Bind() in the Row Command event so that only the Edit command will activate it (take it out of Row Editing). Twice for Row Command (1 for Row Editing and 1 for Row Canceling) and once for Row Editing. I am going to try and create this not as a web application but rather as a website and see if I notice any differences.
On Row Deleting - can call registered event handlers" I couldnt figure out how to continue this thread, but the issues in it are related so i'm including it as a reference.
In my custom grid View control I cannot raise the Row Updated event.