Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to Edit in a TStringGrid

1 view
Skip to first unread message

Darron Stante

unread,
Apr 6, 1998, 3:00:00 AM4/6/98
to

Hi...

I am trying to set a TStringGrid component to edit mode using code.
The only thing I can find on this is the EditorMode property which does
not put the control to editing. I see the ShowEditor procedure which is
what I want to do, however it is protected so I can not call it. Anyone
know how to set the StringGrid into editing mode?

Thanks

Darron


Paul Kaatranen

unread,
Apr 7, 1998, 3:00:00 AM4/7/98
to

If you want to edit the cells in the grid at run time, set the
Options/goEditing property to true.

Paul

Stephan Schneider

unread,
Apr 7, 1998, 3:00:00 AM4/7/98
to

Hallo Darron,

StringGrid has a property named "Options".
For this Options there exist many flags
with the prefix go... (for GridOptions).
One Flag is goEditing.

In Code:

with YourStringGrid do
Options := Options + [goEditing];

I think your problem is solved.


Regards
Stephan Schneider


0 new messages