I have a fairly simple grid I'm using to retrieve contact information from our SQL Server. The SELECT works exactly as expected. It populates my grid. I have an EDIT column that allows you to edit two fields, the remainder of the columns are read-only. The problem I'm having is sometimes an INSERT or UPDATE works, but most the time it doesn't. I'll click on the edit icon, the fields become available, I type something in the field(s) and click the okay/save icon. The grid appears to refresh, but there is no data in those fields. Almost as if the event that UPDATES or INSERTS is not being fired.
The code is fairly simple, the INSERT and UPDATE queries are simple. It's just that I can try this 20 times, and it will only work 2 or 3 of the times. There are other times it will work great and there are no problems for 10-20 INSERT/UPDATES, then for no reason it stops working again. I'm SELECTing from one table using a JOIN to another table, but my INSERTS/UPDATES go the second table using an ID field from the first.
I've had to start rebuilding this in ASP.NET using another control, but this should be working and I'd like to see how I can diagnose and fix. Is there some sort of event or something that I can fire that would allow me to confirm if it truly is firing, or if there is another problem. Maybe like a Javascript popup that shows "UPDATE/INSERT has been fired using this <show query>" or something like that?