I am using WCF data services and we say that a user has a datagrid (via AddObject) Makes the line and then decides that they do not want it after all, so they want to move forward and want to remove it.
In this scenario, the item is in the datacentext but not yet in the database How can I do this?
Any advice would be greatly appreciated.
You should be able to find that a line has been added locally (such as By setting it to a negative value or something else, or a specific flag).
When the user deletes a line from your grid, you have to check whether it is a line that needs to be removed from the database / WCF data service.
Comments
Post a Comment