Click here to Skip to main content
15,065,758 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have successfully installed the WPF rad control in my machine.And bind the rad grid view with the RadDataServiceDataSource .It is working fine but when click in a cell and update the content in it .

Here is the xaml part present

The WCF Service i used is this..

public class Baazaar : DataService<ObjectContext>
   // This method is called only once to initialize service-wide policies.
   public static void InitializeService(DataServiceConfiguration config)
      config.SetEntitySetAccessRule("*", EntitySetRights.All);
      config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
   protected override ObjectContext CreateDataSource()
      BaazaarDbContext nw = new BaazaarDbContext();

      // Configure DbContext before we provide it to the
      // data services runtime.
      nw.Configuration.ValidateOnSaveEnabled = false;

      // Get the underlying ObjectContext for the DbContext.
      var context = ((IObjectContextAdapter)nw).ObjectContext;

      // Return the underlying context.
      return context;

And in the delete button i have past the code is..
private void cmdDelete_Click(object sender, RoutedEventArgs e)

   //DataGridRow drg = (DataGridRow)grdDetails.SelectedItem;

   //if (drg != null)
   // drg.FindName("");

   MyBaazaarContext cxnt = new MyBaazaarContext();
   Currency cur = new Currency();

   cur.ThreeLetterIsoCode = "Deve";


   //radDataServiceDataSource1.DataContext= grdDetails.DataContext;



   // radDataServiceDataSource1.sub

It shows me the error...
An error occurred while processing.

Please help me in this regard as I am unable to tun your demo application as it is required ADO.NET 3.5 support.

Thanks in advance
Updated 21-Dec-11 10:02am
Sergey Alexandrovich Kryukov 21-Dec-11 21:46pm
I cannot see a single line of code working with database. Where is the exception information? In what line?
Use "Improve question" above.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900