Rowupdating command gridview

Posted by / 14-Aug-2020 20:14

Rowupdating command gridview

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...But Row Editing and Row Canceling Edit events are fired without any problem. I have the following code in my user control: using System; using System. but I am a lot more confused now than before when the Edit event was raised when Update button was clicked.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).Even the Row Command event is fired without any issues. Now the Update button raises the update event when the application NOT IN the View state automatically, which accidentally also happens to be the correct way of working for my user control!

1 On Load(Event Args e) 2 The above modification does work if I use the code in a single file. - This master page hosts various user controls which are implemented for corresponding use case.

If I put the grid view directly in the file and bind the events, then all of them work without any issues. May be they knew each other from their previous life and could recognise each other immediately and hence work in sync!

But my user control doesn't understand anything about View Mode enumeration that the application uses!

But we (developers working on this project) need to build it this way for some reason that can't be explained here!!! coming back to the problem, by making the above mentioned change in the way grid view binding was done, the "Update" command button stopped sending the "Edit" events so also any other events it was supposed to fire!!! In my project to know the current mode of the application in which the user is working, we make use of an enumerator with 3 states - View, Edit and Delete.

- These internal user controls may either have or do not have the update panels. I know the above architecture is little screwed up and is also heavy for a web project.

rowupdating command gridview-39rowupdating command gridview-31rowupdating command gridview-76

[: D] I got the solution for the invisible problem I was facing in the week! But how will I find out when the control is loaded for the first time? Is Post Back property since a lot many post backs would have happened before loading the control.

One thought on “rowupdating command gridview”