Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Zeile eines StringGrids editierbar machen (https://www.delphipraxis.net/55414-zeile-eines-stringgrids-editierbar-machen.html)

bioser 20. Okt 2005 14:55


Zeile eines StringGrids editierbar machen
 
Hallo, wie kann ich eine bestimmte Zeile eines StringGrids editierbar machen ? :-D

Delphi-Quellcode:
Grid.Options := Grid.Options + [goEditing]
funktioniert ja nur für das gesamte StringGrid !

Danke für Eure Antworten !

shmia 20. Okt 2005 15:35

Re: Zeile eines StringGrids editierbar machen
 
Im Event OnClick des StringGrids schreibst du
Delphi-Quellcode:
if StringGrid1.Row = 3 then
   StringGrid1.Options := StringGrid1.Options + [goEditing]
else
   StringGrid1.Options := StringGrid1.Options - [goEditing]


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz