I decided to do a little project. It's a work with two-dimensional array, we all know it from Math class. I'd like to color main diagonal in StringGrid by red color in ButtonClick procedure. I know how to find main diagonal with FOR cycle but I don't know how to change the color. Something like example, but it doesn't work.
Stringgrid1.cells[i,j].color:=clRed;