Enabling editing for TStringGrid
-
14-07-2021 - |
문제
I am making a simple database application by following this video. My problem occurs when I use a TStringGrid
instead of a TGrid
as stated the video because I don't have it. I have a Navigator and all of my data loaded into the TStringGrid
, but I am unable to edit it at all. So far I've tried double clicking an entry, pressing F2 and clicking on the Edit button on the Navigator, but nothing is working.
Is there anything I need to alter in the properties of the TStringGrid
to allow editing or is the purpose of it only to display data?
Thank you in advanced!
해결책
You need to add goEditing
to the Options
property. Include it in the Object Inspector, or in code:
StringGrid1.Options := StringGrid1.Options + [goEditing];
제휴하지 않습니다 StackOverflow