delphi stringgrid alternating colors

Posted by Wiona on October 08, 2008

dear delphiland team,

how can I give alternate background colors to the rows of a stringgrid? for example, colour the even rows in yellow, but leave the fixed row with the titles? (there is no fixed column). like this:

title row 0 - normal (silver)
data row 1 - normal (white)
data row 2 - yellow
data row 3 - normal (white)
data row 4 - yellow
and so on

thank you for the great site!

Related articles


Follow Ups