aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB. NET forums is how to deal with exceptions like The Grid View 'Grid View1' fired event Row Editing which wasn't handled.
The Grid View Row is the naming container for the Text Box in this case, so we need to call Find Control on the appropriate row, but we do not need to call it on the specific cell.
Once we have a reference to the Text Box, we set the new last name and save the changes (through the Submit Changes method).
Bind Data could be called in Page Index Changing, but to show that it the event is raised, we’ve handled that in Page Index Changed.
The important point is not which of these two events call Bind Data, but one of them must or the Grid View will not be updated. When bound using a Data Source ID, the Grid View internally tracks the current Sort Expression and Sort Direction, and those are available through properties with the same names.
The way we’ll accomplish this is to create two properties that store those values in View State.