Solved

How to disable this feature of TStringGrid?

Posted on 2003-10-25
5
212 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:happy2000wf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9618935
property fixedCols -> 0
property fixedRows -> 0

meikl ;-)
0
 

Author Comment

by:happy2000wf
ID: 9618946
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
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 50 total points
ID: 9618956
? happens to me only at designtime, at runtime it is white with a focusrect
0
 

Author Comment

by:happy2000wf
ID: 9618970
it is a bug of TStringGrid of d7?
what's the matter?

ps . nice to meet you again and thanks for help
0
 

Expert Comment

by:AlanGLloyd
ID: 9620620
You set the selection outside the stringgrid ...

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

Alan Lloyd

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question