Solved

How to disable this feature of TStringGrid?

Posted on 2003-10-25
5
205 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now