The upper-left corner cell of a stringgrid has a blue background - I believe because it is selected. I don't want any cells "selected". The solutions to this problem that I've seen have the user modify the DrawCell procedure.

But I'm using a TtntStringGrid component in order to get Unicode for several languages and I don't have the DrawCell procedure that prints the text.

Isn't there a simple way to deselect all cells, and thus get rid of this problem? I think I found the answer to this problem with my prior version of Delphi, but I haven't been able to find it in the latest D2007 version that I have.

This seems to work fine

var Rect: TRect;
begin
  SetRect(Rect, -1, -1, -1, -1);
  MyGrid.Selection := TGridRect(Rect);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.