Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-05

is there a free Grid component better than the default TStringGrid?

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Landmesser
to John Landmesser

See attached demo that works without installing TSortGrid.

m 27.05.19 um 11:02 schrieb John Landmesser via lazarus:

Show quoted text 12 lines
perhaps TSortGrid from Online Package Manager that handles String, Float, Integer as you would expect?! Am 27.05.19 um 06:43 schrieb Dennis via lazarus: > I am hoping one that supports different column types editing without > much coding on my side. > thanks in advance. > > Dennis >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190527/ca77e30d/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Demo.zip
Type: application/zip
Size: 66062 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190527/ca77e30d/attachment-0001.zip>

Reply by email

Werner Pamler
to Dennis: I am hoping one that supports different column types editing without much coding on my…
Dennis wrote
I am hoping one that supports different column types editing without much coding on my side.

That's what the standard TStringGrid can do.  Just use Columns. You can pick an editor in the ButtonStyle property. In case of the picklist editor specify the combobox items in property PickList; in case of the checkbox column specify the value assigned to the checked and unchecked state in properties ValueChecked and ValueUnChecked. Of course, these editor types require the grid to be in edit mode (i.e. goEditing in Options).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190527/1ddd42b6/attachment.html>

Reply by email

Luca Olivetti
to Werner Pamler

El 27/5/19 a les 12:00, Werner Pamler via lazarus ha escrit:

Show quoted text 10 lines
Am 27.05.2019 um 06:43 schrieb Dennis via lazarus: > I am hoping one that supports different column types editing without > much coding on my side. That's what the standard TStringGrid can do.  Just use Columns. You can pick an editor in the ButtonStyle property. In case of the picklist editor specify the combobox items in property PickList; in case of the checkbox column specify the value assigned to the checked and unchecked state in properties ValueChecked and ValueUnChecked. Of course, these editor types require the grid to be in edit mode (i.e. goEditing in Options).

And if that's not enough you can implement a custom editor (though that needs some extra coding)

http://wiki.freepascal.org/Grids_Reference_Page#Grid_Cell_Editors http://www.freepascal.org/~michael/articles/grids/grids.pdf

Bye

Luca

Reply by email

John Landmesser
to Dennis

Yes, sorry in ProjectIInspector there is a dependency that should have been removed by me:

second possibility ignore the warning and compile: works here!

m 27.05.19 um 17:07 schrieb Dennis via lazarus:

Show quoted text 11 lines
John Landmesser via lazarus wrote: > See attached demo that works without installing TSortGrid. > >  I opened your zip and Lazarus complained that Laz_SortGrid is missing. After I used Online Package Manager ot install SortGrid, it complained the Sortgrid.pas file is missing Dennis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190528/13cc1071/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: oajdlbjodggjialf.png
Type: image/png
Size: 40082 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190528/13cc1071/attachment-0001.png>

Reply by email