• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

TStringGrid column color

I need my StringGrid to have one column which its text color is clRed. I tried modifying the canvas.font.color in the OnDrawCell event but it had no effect whatsoever.
What is the right way to do that ?
0
forger
Asked:
forger
1 Solution
 
alona041797Commented:
You should make the grid OwnerDraw and then use OutText in the OnDrawCell event to print the text.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now