Gridview onrowupdating onrowupdated

It is an event from that Data Source Control that will trigger the Row Updated event to fire. This can be beneficial to other community members reading the thread.So if you don't have a Data Source Control, it will never fire. When all you've got is a Hammer, Every Problem looks like a Nail. It is an event from that Data Source Control that will trigger the Row Updated event to fire.So if you don't have a Data Source Control, it will never fire. If you need code of your own, consider using Object Data Source to have the benifits of a Data Source Control, and the freedom of code. Please remember to click “Mark as Answer” on the post that helps you. I have no idea how that works for stored procedures.

When the user clicks EDIT then makes a change or two, then UPDATE, the changes are lost. I did some google searches, and there were examples out there but it just isn't making sense. Hi, I would first suggest that you use the Template Columns instead of the Bound Columns this way you are not dependent on the index/position of the column in the Grid View. In the code below I have shown how you can extract the new values from the textboxes inside the Grid View. Thanks, If you are using a Data Source Control in .aspx, you should have both old and new values in the event arguments of the Row Updating event. NET 4.0 or later, there is a fair chance they will be there even when Data Binding in code-behind.The Row Updated event will only fire when using a Data Source Control in

Leave a Reply