>Hi
>
>I've got a grid of edit boxes, with four lines of text in each cell.
>
>The four lines of each edit box show fine, when the cell has focus.
>
>But for some of the cells of the grid that don't have focus only display the last 3 lines (and a blank line).
You may actually have more than four lines - the fifth line being empty. You can do some checking in editbox's .lostfocus(), or just rework the contents. Use alines() to break the contents into lines, then recompose it from the first four non-empty lines and just ignore the rest. And set the .selstart=0 just in case.