And add it to the Session collection then we bind the Session collection to the grid.Please note these property names are same as the ones in the ASPX file.A Grid View Edit 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 edit operation should be canceled. You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions.
However wen I click on Update nothin happens, currently it isn't connected to the database I just want it to change the text of a button so I know the update works.
So what you need to do is store the data source (maybe in Session) and only bind rebind the data when you absolutely need to (Like during the Is Not Post Back) Do you understand?
Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load).
This is the View Model class used for data binding.
event we create a new View Model object with the values entered in the grid.