Rowupdating in grid

I have tried to add an event handler to the Row Updated event of my custom control but it is not called.

I have tried to override On Row Updated in my custom control, but the breakpoint never gets hit.

After searching long and hard I found a great article that solved my issue.

Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.

This demo is a continuation of my previous example “Binding Grid View with Data”. When I do an update, and get to the Grid View1_Row Updating, there is no value passed to "ID", and then when I go to the next row for "Company" I get the following error: Specified argument was out of the range of valid values. Text; bit when ichange it to string id =((Text Box) Grid View1. Line 136: Source Error: Line 134: string Um = ((Text Box)Grid View1. When a new record is added within a grid, the calculated column's value can be accessed only after this record has been saved to the data source.So, you can use the Row Updated event to access this value. On Row Deleting - can call registered event handlers" I couldnt figure out how to continue this thread, but the issues in it are related so i'm including it as a reference.In my custom grid View control I cannot raise the Row Updated event.

Leave a Reply