Programmatically save all rows in Grid

I have a button that I use to set each row in Edit mode using grid.EditRow(associatedrow), but need another method to update the rows with the updated values normally sent via args on the click event of the save button.

Is this possible and does it make sense?

Let me know.

Thanks