Enabling editing for TStringGrid

11,102

You need to add goEditing to the Options property. Include it in the Object Inspector, or in code:

StringGrid1.Options := StringGrid1.Options + [goEditing];
Share:
11,102
ple103
Author by

ple103

Updated on June 04, 2022

Comments

  • ple103
    ple103 almost 2 years

    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!