Hello,
I'm using GridGroupingControl. My Grid contains more then one column.
The datasource is a binding list. The elements of the binding list fire a Change event if one of the properties was changed. The binding list registers these events and fires OnListChanged.
If more than one cells were edited without leaving the row, the grid view writes only the first modified value back to the model.
My opinion is:
If an OnListChanged event is fired during the SaveChanges procedure, the CurrentRecordManager will reread cell values from the model - which has not been saved completely yet (only one value was saved). This will discard all user changes (except the first) and cause an inconsistent view.
Result:
- objects in the model can be inconsistent (validations were applied to user changes - not to the incompletely saved data) and will not be shown as erroneous to the user
- when focusing different rows: the complete (but unsaved) user
modifications are shown for unfocused rows; the actual domain object state (including partially saved user modification) is shown at the focused row.
I have attached the example project.
Do you see this behavior also as a bug? Could you resolve it please.
Thank you.
WindowsFormsApplication4_42883138.zip