Webdatagrid rowupdating event not firing

I am using a SQLData Source to populate my gridview in ASP. When I hit Edit, the textboxes appear and I am able to edit my values. I am using a SQLData Source to populate my gridview in ASP. When I hit Edit, the textboxes appear and I am able to edit my values. In the Row Editing function, the edit textboxes appear and I can get the "old" values Then the page renders, I edit the textboxes and hit Update.

When I hit Update, the changes are not saved, and there is no error message. When I hit Update, the changes are not saved, and there is no error message. Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires. Yes, I did put the breakpoint at the Row Updating line (and not in the function).

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

My conclusion is that this combination of handlers is somehow controlled by the nature of the data source.

Please note these property names are same as the ones in the ASPX file.

I think what is not happening has to do with the fact that I am using Data Table objects for my data source.

For more information on the Activation behavior, see Activation.

Note: You must have a supported data source for this type of automatic update to occur.

9

Leave a Reply