The method to update row remains the same in either case: updateRow()
Either you can update the row fields directly from the form or after ajax request to the database is complete. In latter case, the response from ajax request should contain the updated value of the row fields.