Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Setting read-only columns in StringGrid
7 comments. Current rating: (4 votes). Leave comments and/ or rate it.
From: Mark Pritchard
In the OnSelectCell event, this works fine (every even column is editable)
 | |  | |
if Col mod 2 = 0 then
grd.Options := grd.Options + [goEditing]
else
grd.Options := grd.Options - [goEditing];
| |  | |  |
Comments:
|
anonymous from Turkey
|
 |
|
|
|
|
anonymous from Australia
|
 |
|
|
Col should be ACol?
|
|
anonymous from Switzerland
|
|
|
|
Yes, ACol returns the column index.
|
|
Drone from Azerbaijan
|
|
|
|
what's the point? You can just set CanSelect on True or False
|
|
anonymous from Indonesia
|
|
|
|
chip dech
|
|
DAVID VAN MTZ from Cuautitlán Izcalli, Mexico
|
 |
|
|
THANKS A LOT!!
|
|
kumar babu from India
|
 |
|
|
Thank you
|
|