none
Preventing updates to certain records on sync RRS feed

  • Question

  • Alright, here's my scenario...

    An inspector is out in the field making additions and deletions to detail records of a inspection parent record.  During this time, an admin may come to the website and decide that any syncs to the inspection parent or children record be discarded.

    I've hooked into ApplyingChanges and am looping through the records sent in e.Context.DataSet.Tables.  I do a lookup in the database, and check if this is one of the records that should not be updated. 

    In the case this particular record should not be updated, I need to know what to do to the record at this point.  Setting dataRow.Delete()does not do what I want it to.  It ends up deleting the record on the server.

    Any help on this matter would be awesome.  Thanks!

    Thursday, May 23, 2013 2:12 PM

Answers

  • you call the remove on the datatable rows collection...

    e.g yourdatatable.Rows.Remove(rowToRemove)

    Thursday, May 23, 2013 2:40 PM
    Moderator

All replies