Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
FPSpreadsheet
»
How to hide columns?
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Multiple forms
by
rwebb616
[
Today
at 01:08:39 am]
Needing help with Sqlite ...
by
speter
[
Today
at 12:59:19 am]
Runtime error 216 when lu...
by
flax57
[
Today
at 12:34:08 am]
FPLite? (An alternative e...
by
FlierMate
[
Today
at 12:17:03 am]
Translated Textbook
by
dbannon
[January 23, 2021, 11:54:56 pm]
trying to make a Windows ...
by
SA.Blackmon
[January 23, 2021, 11:38:46 pm]
request for imagesgrid co...
by
wp
[January 23, 2021, 11:28:55 pm]
[LAMW] How to prompt cont...
by
Segator
[January 23, 2021, 11:26:33 pm]
Dialog(ue) editor
by
MarkMLl
[January 23, 2021, 10:57:26 pm]
Select word under caret i...
by
skalogryz
[January 23, 2021, 10:43:23 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to hide columns? (Read 231 times)
Jvan
Full Member
Posts: 121
How to hide columns?
«
on:
October 25, 2020, 03:18:43 am »
I only want to show the firt 10 columns, so I need to hide the rest of them.
Logged
wp
Hero Member
Posts: 7958
Re: How to hide columns?
«
Reply #1 on:
October 27, 2020, 10:20:17 am »
When you want to restrict the number of rows and column usable in the WorksheetGrid you must set the property AutoExpand to [aeDefault] -- then the WorksheetGrid behaves like TStringGrid, i.e. you define the extent of the grid by setting its ColCount and RowCount properties. You cannot navigate beyond these limits, and you only can access cells within these limits. Adding aeData to the set automatically expands the grid when cells are written outside, and adding aeNavigate exands the grid when the user navigates with the arrow keys beyond the limits.
Please read
https://wiki.lazarus.freepascal.org/TsWorksheetGrid#New_grid_properties
Logged
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
FPSpreadsheet
»
How to hide columns?
TinyPortal
© 2005-2018