Force a Save in Script for Grid View

Force a Save in Script for Grid View

Is there a way to force the save action for the grid view from a script?  I have an html view that has 2 grid views and form embedded in it.  When someone clicks submit in the form?  I would like to force a save action for all changes made in the other 2 grids.