How to disable this feature of TStringGrid?

happy2000wf
happy2000wf used Ask the Experts™
on
When I use a TStringGrid object, the Cells[0,0] is always drawn with High Light background.
but I don't like it.

How to disable it?

thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2004

Commented:
property fixedCols -> 0
property fixedRows -> 0

meikl ;-)

Author

Commented:
I have set fixedCols and fixedRows to 0

the problems is that the blank is first shown in selected mode, if I click it, everything will be ok

I want it first shown with white blanks
Top Expert 2004
Commented:
? happens to me only at designtime, at runtime it is white with a focusrect

Author

Commented:
it is a bug of TStringGrid of d7?
what's the matter?

ps . nice to meet you again and thanks for help
You set the selection outside the stringgrid ...

  StringGrid1.Selection := TGridRect(Rect(-1,-1,-1,-1));

Alan Lloyd

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial