in editable grid of master detail last row data displays on row which is edited

in editable grid of master detail last row data displays on row which is edited if we cancel the edit by clicking on cancel button on all master detail forms i have in my project
[ATTACH=CONFIG]n74495[/ATTACH] [ATTACH=CONFIG]n74496[/ATTACH] [ATTACH=CONFIG]n74497[/ATTACH]

1 before-edit.png

2 on-edit.png

3 on-cancel.png

the data is not saved in database and when i refresh it shows original value, but this is serious problem as it confuse users