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
TLineSeries display every...
by
wp
[
Today
at 12:35:34 pm]
Copy File to MTP
by
dbannon
[
Today
at 12:31:09 pm]
Anyone using Fast-Reports...
by
Thaddy
[
Today
at 12:04:32 pm]
S.M.A.R.T.: How to read?
by
JernejL
[
Today
at 10:54:37 am]
doc (CHM) snapshot update...
by
Andrey Sobol
[
Today
at 10:26:09 am]
Streaming video to a web ...
by
BlueIcaro
[
Today
at 10:19:16 am]
ANN: TRichView 19 (rich t...
by
Sergey Tkachenko
[
Today
at 09:52:16 am]
Batch layer export
by
MarkMLl
[
Today
at 09:47:41 am]
QT 6?
by
marcov
[
Today
at 09:43:46 am]
TImagelist load at run ti...
by
torbente
[
Today
at 07:09:38 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to hide columns? (Read 225 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: 7930
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