Rowupdating rowupdated gridview
If anybody has an answer for this strange problem, please mail me or reply to this post... the Update button had gone on strike and wasn't raising the Update events for sometime even when the application was in the Edit state. The application was in THE EDIT STATE but still NO UPDATE Events when UPDATE BUTTON WAS FIRED.
The below is my connection string which is stored in web.config file.
You can change this connection string according to your SQL server database setting.
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.When I use my user control in an or in an file, Row Updating and the Row Updated events are not at all fired. My user control inherits from "Web Control" and NOT from Grid View PS. I repeated this multiple times and each and everytime I amused myself by seeing the Update button work even without doing anything!And because of this I am unable to update the data. This XML file is converted into a data table and then is bound to the grid view. There are mutliple update panels in the parent files and files in which this user control is being used. I am a happy man now that my user control is working...I just can't help pulling my hairs out and turning into a complete bald because of this strange problem.... The Row Updating event is raised when a row's Update button is clicked, but before the Grid View control updates the row.