Are you colouring these cells manually? Is there perhaps some more simple logic that you could use to decide if a row has a title in it?