The "rows" primitive turns a table into a list of dictionary, with each dictionary representing a row.
You can thus iterate over the rows of the table stored in a grid something like:
each row in rows mygrid.value # ... end
More broadly, though, what are you trying to do? There might be better alternatives depending on the application.