Am I missing something or are you just trying to colour alternating rows different colours? If that is the aim then the DataGridView already has a property for this: AlternatingRowsDefaultCellStyle