Information générale
Catégorie:
The Mere Mortals .NET Framework
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement