* * *

Author Topic: TStringGrid, delete column...?  (Read 1383 times)

julgus

  • New member
  • *
  • Posts: 29
TStringGrid, delete column...?
« on: October 19, 2016, 07:15:05 pm »
How do I delete an existing column in the IDE? I can add, I can edit the grid but how do I delete a column???  I can make it not visible but I surely must be able to delete it in the ide?
« Last Edit: October 19, 2016, 07:20:29 pm by julgus »

Blaazen

  • Hero Member
  • *****
  • Posts: 2385
  • POKE 54296,15
    • Eye-Candy Controls
Re: TStringGrid, delete column...?
« Reply #1 on: October 19, 2016, 07:35:56 pm »
Select column in Object Inspector and hit key Delete

or

select StringGrid in OI, select property Columns and double click it (or click the button [...]). It will open "Editing Columns" dialog where you can add/delete columns.
Lazarus 1.9.0 r55743 FPC 3.0.2 x86_64-linux-qt Chakra, Qt 4.8.7, Plasma 5.9.4
Lazarus 1.6.4 r54278 FPC 3.0.2 i386-win32-win32/win64 Wine 2.4

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

julgus

  • New member
  • *
  • Posts: 29
Re: TStringGrid, delete column...?
« Reply #2 on: October 19, 2016, 07:45:59 pm »
Thanks!
I got it to work using [fn]+[delete] (not the usual method to delete data when using mac).. when I click columns the property part is blank.. nothing to click on so I can't access "Editing Columns". If I right click on TStringGrid I can access "Edit Stringgrid" but I can't delete a column there.. at least I can't figure it out...

Is the Lazarus ide more Windows biased?

Why is it 2 columns but one only one is defined in the object inspector?
« Last Edit: October 19, 2016, 07:54:19 pm by julgus »

julgus

  • New member
  • *
  • Posts: 29
Re: TStringGrid, delete column...?
« Reply #3 on: October 19, 2016, 08:42:24 pm »
Thanks! I found the Columns property as you said - I clicked at "Columns" in the Object inspector. And it shows a extra column if I have 1 as "FixedCols". It ought to be 0 as default I may think.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus