extracting values from grid to use in post