Hi Sandhya,
Fallow the below code:
CALL METHOD G_GRID1->GET_SELECTED_ROWS
IMPORTING
ET_INDEX_ROWS = I_SELECTED_ROWS.
then compare the old values with editable values then save these values with your conditions.
Try this If any have to ask.
Thanks,
Santhosh