I have a grid with both gapwidth and gapheight set to 1, which I would like the grid to have a border showing the background color, which I set to gray.

However, when the grid is loaded, it does not show the gray border, but instead the previous screen behind the cell gap.

Strangely I can get the border only if I refresh the screen by selecting any menu item, which forces the screen to refresh, I guess.

Can anyone tell me how to get the border right at the first time.