Home / freesexchatmoblie / Gridview rowupdating event not working

Gridview rowupdating event not working

As far as I can tell, all of the properties are identical between the Grid View that is working properly and the one that isn't.

Since I don't know enough about the underlying code responsible for calling the Row Updating event, I'm not sure how to debug this or what things to try.

Find Control("txt Name"), Text Box) Dim cinvnum As Text Box = Direct Cast(row.

Find Control("txt CINVNUM"), Text Box) Dim last As Text Box = Direct Cast(row.

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.

the update and cancel selectors do not go away, clicking on update seems to be ignored).

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 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 other Grid Views that are very similar which are working fine, I can't seem to determine why this one is acting up and not sure how to debug it.Well, I put a breakpoint at the beginning of each method in this module trying to see if any code was running before the Row Updating event should be called, and unfortunately none of the breakpoints were tripped.There was a required field validador way down at the bottom of the page where I couldn't see that was complaining when I pressed the update button for the Grid View.Thank you samtran for your time and effort on this, much appreciated!The only thing I can see that I'm doing differently from the other Grid View is I'm calling the Load() method: Sql Command my Command = new Sql Command(my Query, cn); Sql Data Reader my Reader; my Reader = my Command.Execute Reader(); Sigh, I found the problem and I feel like a total idiot now.The following code runs successfully with no errors, but I still don't get the new data from the grid, by adding a break point, and stepping forward, the data in the variables are the original data, not the updated data, what am I missing? Find Control("txt Expiry"), Text Box) Dim type As Text Box = Direct Cast(row. Private Sub grv Sample_Row Updating(By Val sender As Object, By Val e As System. Find Control("txt Type"), Text Box) Dim name As Text Box = Direct Cast(row.


  1. Gridview RowUpdating event not firing. Ideally I'm looking for a full working sample where there are customised buttons used for. Gridview - Update event not.

  2. RowUpdating event doesn't work. Private Sub grvSample_RowUpdating. Gridview rowupdating event not working. 0.

Leave a Reply

Your email address will not be published. Required fields are marked *