Delete from detail via grid binding

Posts   
 
    
horo
User
Posts: 41
Joined: 01-Sep-2005
# Posted on: 29-Aug-2006 15:30:49   

Hi to All,

Scenario: Adapter, WinForms

I have a Master-Detail schema so MasterEntity m has an m.Detail IEntityCollection2 type property.

I bind the m.Detail.DefaultView to a grid. I delete on or more rows via the grid.

How can I persist with theese operations, when the use issues the "Update" command?

What I've tryed so far: I've tryed adapter.SaveEntity( m, true, true ) but it works only with updates and new additions in Detail collection.

thx for answers: horo

Jessynoo avatar
Jessynoo
Support Team
Posts: 296
Joined: 19-Aug-2004
# Posted on: 29-Aug-2006 17:20:26   

Hi,

You should handle your deletion actions and use a Unit Of Work to queue them till you validate the operation.

I think you can get more information from that thread:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5809