Delete from collection?

Posts   
 
    
dazedorconfused avatar
Posts: 89
Joined: 06-Apr-2006
# Posted on: 24-Apr-2006 20:18:38   

When I bind Ultragrid to a gen'd collection class, deleting a row in the grid doesn't appear to be deleting the entity in the db. Do I have to catch the grids delete event and remove the entity manually?

Thanks.

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 25-Apr-2006 02:54:52   

I haven't used Ultragrid, but removing an entity from a collection will not delete it from the database. If that is what you want to do you should do what you are saying and on the delete event call an entity delete or maintain a collection of entities that you delete at some time later.

dazedorconfused avatar
Posts: 89
Joined: 06-Apr-2006
# Posted on: 25-Apr-2006 21:40:34   

Thanks