![]() |
StringGrid -> GoEditing
Hallo zusammen,
kann man in einem StringGrid einzelne Felder für eine Bearbeitung freigeben und den Rest nicht? Oder kann man das über den Punkt "Options"->"GoEditing" nur für das gesamte StringGrid beeinflussen? Danke |
Re: StringGrid -> GoEditing
Hallo,
du kannst in der Behandlungsroutine für das Ereignis ![]()
Delphi-Quellcode:
Gruß Hawkeye
procedure TForm1.Grid1SelectCell (Sender: TObject; ACol, ARow: Integer;
var CanSelect: Boolean); begin if ((ACol = 3) and (ARow = 4)) then Grid1.Options := Grid1.Options - [goEditing] else Grid1.Options := Grid1.Options + [goEditing]; end; |
Re: StringGrid -> GoEditing
Stimmt, so geht das natürlich am einfachsten.
Danke für deine Hilfe Grüße Todd |
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:15 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz