Made an example, the user updated data is saved in the session, click the "Update Data Source" button After updating the data in the session into the database, you can look at http://www.webdiyer.com/demo/editdatagrid.aspx To the demo:
File Code: Test.aspx ========================================================================================================================================================== <% @ Import namespace = "system.data"%> <% @ Import namespace = "system.data.sqlclient"%>