Recent

Author Topic: First empty column in TStringGrid  (Read 190 times)

Mario

  • New Member
  • *
  • Posts: 30
First empty column in TStringGrid
« on: September 05, 2024, 08:58:29 am »
Hi,

i'm trying to follow this tutorial,

https://wiki.lazarus.freepascal.org/TStringGrid

but am stuck with the following: there is an additional empty column to the left that I don't know how to get rid of. So my question: what is this column and how do I get rid of it? It doesn't show in the object tree nor did I find anything in the StrinGrid object.

I've attached two screenshots, one of the form, one of the object tree.

Thanks for your help!

Zvoni

  • Hero Member
  • *****
  • Posts: 2641
Re: First empty column in TStringGrid
« Reply #1 on: September 05, 2024, 09:19:55 am »
FixedCols = 0
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

cdbc

  • Hero Member
  • *****
  • Posts: 1499
    • http://www.cdbc.dk
Re: First empty column in TStringGrid
« Reply #2 on: September 05, 2024, 09:21:37 am »
Hi
edit: Zvoni beat me to it  :D
In the ObjectInspector try to find the property 'FixedCols', it's probably set to '1', change that to '0' and see if that helps...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Mario

  • New Member
  • *
  • Posts: 30
Re: First empty column in TStringGrid
« Reply #3 on: September 05, 2024, 09:28:25 am »
Thanks guys, that was it!

 

TinyPortal © 2005-2018