Hello,
here's my next question.
I have a form which contains a grid that is populated with a typedlist because it shows 2 joined tables. The user can update the records using buttons on the screen.
When the user clicks the delete for instance, I get the key of the record out of the typedlist, create a entity with the primary and update that entity.
The user can do this multiple times on the form and the changes are only saved to the database when he presses the ok button, therefore, I'm using a unitofwork to handle this, which works perfectly.
The problem I'm having, is when the user presses the delete, I perform the delete behind the scenes, which is not yet commited to the database, but I need the typedlist to be updated so that the deleted record does not show itself anymore in the list.
I've found a way to do this if the grid is displaying an entitycollection using the removeat, is there a way I can do this with a typedlist.
The same for changing a record ?
Thx,
Dominique.