Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Row in DataGrid View & CreateEntityList()
Message
De
06/03/2009 14:44:11
 
 
À
06/03/2009 08:12:29
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01386128
Message ID:
01386301
Vues:
36
Jeff,

Is the business object an EntityCentric business object? If so, then the EntityList should have been created automatically when the data was retrieved from the backend database and loaded into the grid. I am not sure I understand when you say that after deleting a row you "execute a ForEach loop using CreateEntityList." Maybe you could provide more specifics about your problem including whether or not you have ImmediateDelete set to true or false in the business object. The count of entities in the EntityList must always agree with the count of rows in the DataTable, so I do not think we want CreateEntityList() to ignore deleted rows in the DataTable.

Sam Tenney

>I have a business object bound to a DataGridView. The user loads data into the grid and later deletes a row. Later, when I execute a ForEach loop using CreateEntityList, I get a "Deleted row information cannot be accessed through the row." error message when the deleted row is accessed. Is there a way to get CreateEntityList() to ignore deleted rows?
>
>Thanks,
>Jeff
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform