The gist of the example is that the data indicates a date past due. If this condition is found when creating the cell (cellFormat), two styles are applied. One style is for the cell (textFilll=red) and one for the overall row (backgroundcolor=yellow). You also have to consider the cells are being recycled so you need to clean up any previously set styles. Also, empty cells have to be handled by this cellFormat