RowColors Property

It is unclear where you get grid.RowColor, it is not available this way. The correct definition is grid.RowColor[index]: TColor which is a read/write property to set the color of a row.