Colour file names in grid view
Correctly calculate number of rows