Grid background colour not changing


#1

Hi,

I’m creating an iOS app which uses ShinobiGrids, however I have this strange issue with the background colour not changing for some of the grids. As you can see two grids have a black background colour, even though I’m using the same code to set the background colour to white for all the grids.

Screenshot

I’ve tried the code listed below.

grid.backgroundColor = [UIColorwhiteColor];

[grid.layersetBackgroundColor:[UIColorwhiteColor].CGColor];

Thank you for your help.

Jing Jing Tao


#2

Hi Jing Jing Tao,

Have you tried changing the background color of your cells?

To do this set your cell’s background color in your grid’s datasource method “shinobiGrid:CellForGridCoord:”.

Let me know how you get on. 

Kind Regards,
Andrew Polkinghorn


#3

Hi Andrew,

Thank you for your reply, that worked, so changing the grid colour and similar properties should be done in the grid’s datasource?

Regards

Jing Jing Tao