Author Topic: help needed - TECGrid  (Read 359 times)

kjteng

  • Sr. Member
  • ****
  • Posts: 268
help needed - TECGrid
« on: August 27, 2026, 05:31:13 am »
I am trying out TECGrid component (ecControls ver 0.9.60, Lazarus 4.6, windows 11 Pro). I have assigned  the data from a 5x5 array via ECGrid1Columns4GetDataCellText but nothing is displayed on the grid. SaveToCSV file shows the following content:
   Column0,Column1,Column2,Column3,Column4
   R0C0,R0C1,R0C2,R0C3,R0C4
   R1C0,R1C1,R1C2,R1C3,R1C4
   R2C0,R2C1,R2C2,R2C3,R2C4
   R3C0,R3C1,R3C2,R3C3,R3C4
   R4C0,R4C1,R4C2,R4C3,R4C4

Any clue?

dsiders

  • Hero Member
  • *****
  • Posts: 1740
Re: help needed - TECGrid
« Reply #1 on: August 27, 2026, 07:27:18 am »
I am trying out TECGrid component (ecControls ver 0.9.60, Lazarus 4.6, windows 11 Pro). I have assigned  the data from a 5x5 array via ECGrid1Columns4GetDataCellText but nothing is displayed on the grid. SaveToCSV file shows the following content:
   Column0,Column1,Column2,Column3,Column4
   R0C0,R0C1,R0C2,R0C3,R0C4
   R1C0,R1C1,R1C2,R1C3,R1C4
   R2C0,R2C1,R2C2,R2C3,R2C4
   R3C0,R3C1,R3C2,R3C3,R3C4
   R4C0,R4C1,R4C2,R4C3,R4C4

Any clue?

I don't know anything about the EyeCandy Grid control... but LCL grid controls have a DefaultDrawing property to control drawing the background and text in cells. Set it to True to allow the control to do the heavy lifting.

HTH

wp

  • Hero Member
  • *****
  • Posts: 13707
Re: help needed - TECGrid
« Reply #2 on: August 27, 2026, 01:18:04 pm »
I can't get anything to be displayed in the ECGrid, too. Maybe I am not doing it correctly... But also the ECGrid demo project has empty grids.

Is there a special reason why you want to use this kind of grid? It seems to me that the Eye-Candy-Controls are no longer maintained since the package does not compile with Laz/main. It's only a small change needed to fix this (replace "CompareMethod" by "SameMethod" in the ECSwitch unit), but who knows what more severe changes will be needed in the future. The author, Blaazen, has not been active here for two years - I hope he is doing fine.

kjteng

  • Sr. Member
  • ****
  • Posts: 268
Re: help needed - TECGrid
« Reply #3 on: August 27, 2026, 03:49:30 pm »
I can't get anything to be displayed in the ECGrid, too. Maybe I am not doing it correctly... But also the ECGrid demo project has empty grids.

Is there a special reason why you want to use this kind of grid? It seems to me that the Eye-Candy-Controls are no longer maintained since the package does not compile with Laz/main. It's only a small change needed to fix this (replace "CompareMethod" by "SameMethod" in the ECSwitch unit), but who knows what more severe changes will be needed in the future. The author, Blaazen, has not been active here for two years - I hope he is doing fine.
Thanks for your reply.   I am actualy looking for a light-weight and simpler stringgrid like vcl,  for a small app.  Since  TECGrid is no longer maintained, perhaps I should look for other alternative such as TNiceGrid.


P/S: I noticed that the DrawDataCellContent, DrawHeaderCellContent methods are not invoked even after I called ecGrid1.invalidate.
 

 

TinyPortal © 2005-2018