| | |
unselecting stringgrid cells
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2007
Posts: 20
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Oct 2007
Posts: 20
Reputation:
Solved Threads: 0
This seems to work fine
Pascal and Delphi Syntax (Toggle Plain Text)
var Rect: TRect; begin SetRect(Rect, -1, -1, -1, -1); MyGrid.Selection := TGridRect(Rect);
![]() |
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Clientdatasets and MySQL
- Next Thread: How to make backups
| Thread Tools | Search this Thread |





