Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete Row in DataGrid View & CreateEntityList()
Message
From
06/03/2009 14:44:11
 
 
To
06/03/2009 08:12:29
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01386128
Message ID:
01386301
Views:
37
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
Previous
Reply
Map
View

Click here to load this message in the networking platform