As we discussed in the previous tutorial, when a row is edited in the Grid View the Edit button is replaced by Update and Cancel buttons and the Bound Fields turn into Text Boxes.Scott Mitchell March 2007 Summary: Extend the built-in inserting, updating, and deleting capabilities of ASP.NET data Web controls, and customize the editing interface to update only a subset of the product fields, with this tutorial from Scott Mitchell. Please build a function to make sure that only valid columns are specified in the sort expression to avoid a SQL Injection attack. Just one a glitch when it comes to fetching grid with sorted columns. The first code example demonstrates how to use an Object Data Source object with a business object and a Grid View control to display information.The second code example provides the middle-tier business object that is used in the first code example.
Then, handle the Object Disposing event to cache the business object for future use, instead of destroying it. In this code example, the Object Data Source Class System.