00 Votes

Lazarus: Only make specific columns editable in StringGrid

Question by Guest | 2016-02-13 at 16:27

I am using the component TStringGrid in Lazarus and via the property Options -> goEditing I have set that the user is allowed to edit and change the cell content of the StringGrid .

Now, I would like to reach somehow that not all columns can be edited. Unfortunately, I can only find properties allowing or disallowing all columns at once. How can I adjust that more precise?

ReplyPositiveNegative
2Best Answer2 Votes

The StringGrid has the property Columns, where you can add new columns. Each column also has the property "ReadOnly", with which you can control, whether you can only read the content of the cell or if you can even change it.

Set this property for all columns for which you would like to disallow editing to TRUE or to FALSE otherwise.
2016-02-13 at 17:38

ReplyPositive Negative
Reply

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.