[NTG-context] First and last lines on a grid