In this article I will show you how you can use the Object Data Source with the Grid View control to do editing, updating, deleting and adding new records.There are several ways to perform these operations, I am using the simplest approach.If no match is found, an Invalid Operation Exception exception is thrown.
If the business object implements the IDisposable interface, the Dispose method is called before the object is destroyed. Next, the parameters that are listed in the Update Parameters element are added.
The example requires a LINQ to SQL class that represents the Northwind database and Employees table.
For more information, see How to: Create LINQ to SQL Classes in a Web Project.
(For more information, see the preceding section.) The Object Data Source control then attempts to find a method to call.
First, it looks for one or more methods with the name that is specified in the property.