Have your form elements update the associated model (DG.selectedItem) field. On
change is often good for this, or focusOut. Perhaps flag the item as modified,
so that you can loop over the dataProvider to extract the modified rows.
Then send the modified rows to the server as an ArrayCollection.