Edited Entity should not commit changes only when Save button is pressed
Posted on 2010-08-17
I have a Mainform + smallDialog.
The Mainform has a datagrid with entities bound.
The smallDialog updates the entity double-clicked-on-the-datagrid-in-Mainform wich is passed to the smallDialog and bound there again to a bindingsource.
When I change now some data in the textfiels AND leave the textfield so the focus is lost, the data is immediate updated in the datagrid of the Mainform.
What I want is to update ONLY when the OK-button is pressed.
How can I change that update-behaviour without cloning the entity and do many workarounds?