This is a migrated thread and some comments may be shown as answers.

Insert And update in Gridview using only WCF

2 Answers 152 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Subhash Chandra
Top achievements
Rank 1
Subhash Chandra asked on 15 Feb 2010, 08:08 AM
Hi All,
            I going to use silverlight and wcf for my next ptoject.
As this is very new technology,I do not find much  resources regading this.

I need to know how to update GridView rows data  using WCF service in RowEdit_End event.

Example:-If the current row  cell has value 'abcd' and when I edit the row cell and save it, the edited data should be reflected in into database.

I want to do these things using WCF service.

One more question, How to insert a new row in gridview.

Thanks,
SUbhash

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Feb 2010, 08:43 AM
Hello,

The easiest way to achieve your goal (almost codeless) will be to use WCF RIA Services or WCF DataServices - I suggest you to check relevant demos, videos and tutorials for both techniques.

If you want to perform everything by yourself you will need to create your own methods, download desired data from your plain WCF service and call desired method with desired data when you need to update your data base.

If the grid is bound to INotifyCollectionChanged collection of INotifyPropertyChanged objects you will get notification for every single change.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Subhash Chandra
Top achievements
Rank 1
answered on 15 Feb 2010, 09:01 AM
Hi vlad,
           What I am doing is Pulling some data from WCF service and populating Gridview.Now If I change the Row data and click save button,The changed data should be saved back to database.

To display records in gridview,I am not using any collection.

include any smaple projects if possoble to understand it better.

Tags
GridView
Asked by
Subhash Chandra
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Subhash Chandra
Top achievements
Rank 1
Share this question
or