add option to allow the row id value to be stored

incomplete.   fails on non grids that have no ID on any row.