Click Ok to add reference of those operations in Silverlight class library project.
You won’t find Row Edit Ended that is very useful event but was missing in Silverlight 2.0.
Now wire up Beginning Edit and Row Edit Ended event of Silverlight datagrid in Code behind class constructor.
To update/get data from database, we will LINQ to SQL class.
To know more about LINQ to SQL, you can refer MSDN article here.
Now build the solution to make sure all above steps went well.
Adding Reference in Silverlight Class Project Right click on Silverlight Class library - Add Service Reference.Adding LINQ to SQL Class To add LINQ to SQL Class file, right click on silverlight web project and add new item and choose LINQ to SQL Classes template.Once you click on Add it will open Data (object relational designer) file. It will open “Server Explorer” window where you can establish your sql server database connection.It will open Add Service Reference window now click on Discover button it will search for WCF Service within a solution and will list the service we created so far.Click on the service that found and expand that tree you will see the Get Members and Update Member operation in right box.If you are not familiar with WCF Service, you can find out more about WCF here. There will be dummy contract “Do Work()” created in service contract file.