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];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top