[SOLVED] Stringgrid - count cell rows with bold and red numbers in a column lazarus / 31-LCL ---------------------------------------------------------------------- JD · 2021-08-25 16:57 Hi there everyone, I have a stringgrid and I'm trying to count the number of cell rows with bold and red numbers in the first column. Can anyone help me out, please. Cheers, JD ---------------------------------------------------------------------- winni · 2021-08-25 17:34 Hi! Never use some display attributes for the internal logic. Keep the display and the logic separate. There must be some boolean decision if you want to display a cell bold and red. That is the location to count these cells. Winni ---------------------------------------------------------------------- JD · 2021-08-25 19:51 Quote from: winni on August 25, 2021, 07:34:49 pmHi! Never use some display attributes for the internal logic. Keep the display and the logic separate. There must be some boolean decision if you want to display a cell bold and red. That is the location to count these cells. Winni Thanks for the reminder. I finally gor it to work based on what you advised. Cheers, JD