DataGridView bounded to an EntityCollection

Posts   
 
    
kal
User
Posts: 18
Joined: 25-May-2010
# Posted on: 18-Jan-2011 10:54:35   

Hi folks,

I have a DataGridView bounded to an EntityCollection. I can modify values, add rows or delete rows. I want to save all these actions when the user press a 'Save' button. Inside the button click event handler, I can see that the EntityCollection has been modified according to all the actions performed (Adding row, removing row, changing values). When I do a SaveMulti(), I can save all of these modifications excluding the rows that have been deleted. I can't do a DeleteMulti() as it requires a PredicateExpression.

Do you have any idea on how I can perform the saving action?

Thanks in advance! Regards, Kal

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 18-Jan-2011 18:11:46   

Which version are you using?

In v2.6 and higher there's a feature called removed entities tracker

Frans Bouma | Lead developer LLBLGen Pro
kal
User
Posts: 18
Joined: 25-May-2010
# Posted on: 19-Jan-2011 10:42:42   

Otis wrote:

Which version are you using?

In v2.6 and higher there's a feature called removed entities tracker

Thank you very much, that is exactly what I was looking for ! you made my day smile

Cheers!