To edit a row of grid

Which method should I use to edit a row of a grid…? I tried almost all methods but with no success.
After selecting a row… A new window appears and I am changing the values over there. And the same values should get reflected in grid after I click save.

Check next samples

show how values can be copied from form to grid and back
server\01_loading\03_list_form_manual.html

shows how form can be binded to the grid, so it will always show the selected row and will allow to sync changes back in grid
ui\server\01_loading\04_list_form_auto.html

Please provide me the links of the samples if possible
Thank you.