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?
Related Topics
XLS and XLSX: Maximum Number of Columns and Rows
Info | 2 Comments
MySQL: 3 Ways of showing Table Definition and Structure
Info | 0 Comments
How to Replace multiple Texts at the same Time
Tutorial | 0 Comments
SQLite: Creating an Index on one or more Columns
Info | 0 Comments
Lazarus: Multiline StringGrid Cells
Question | 1 Answer
Convert many CSV Files to XLSX or ODS Spreadsheets
Tutorial | 0 Comments
SQLite: String and Column Concatenation using SQLite
Info | 0 Comments
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.
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