Recent

Author Topic: Grid and CheckBox  (Read 20821 times)

jesusr

  • Sr. Member
  • ****
  • Posts: 499
Re: Grid and CheckBox
« Reply #15 on: November 09, 2010, 03:31:29 am »
note that grid.Columns.Items[0] refers to the first custom column on the grid. This is exactly the same as grid.Columns[0] because the Items property is default property for grids.columns collection.

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Grid and CheckBox
« Reply #16 on: November 09, 2010, 05:08:08 am »
I create example

http://www.liuheschool.com/informatica/Lazarus/Esempi/Esempio_Chk_grid.zip

On Windows, it works correctly. On Linux I do not know, can anyone try? Tell me what you think!

It works the same. One observation, if you set grid option goEditing to true, you can delete the code in the OnClick handler as the grid will do it for you.

Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018