When editing a grid, the pagelayout seems not to work well in edit form templates. I believe it does not account for the space consumed outside of the template, the grid itself and any other space between grid and edge boundary of screen. I have add the pagelayout with in the edit form and also wrap the grid with the pagelayout control. No effect.