Question

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!

Was it helpful?

Solution

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

StringGrid1.Options := StringGrid1.Options + [goEditing];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top