
Envoyé par
https://wiki.lazarus.freepascal.org/Grids_Reference_Page
property AutoFillColumns
Often the grids are wider than the horizontal space needed by the columns -- this leaves an unpleasant empty area at the right of the last column. The LCL grids provide a mechanism to expand the width of specified columns such that the empty space is filled automatically.
For this purpose, Columns must be added either as described above, or by setting the ColCount property, and the grid property AutoFillColumns must be set to true. Each Column has a property SizePriority. When it has the value 0 the column width is taken from the Width property of the column. But when it has a non-zero value the column width is adjusted to the average available size remaining for all columns with a non-zero SizePriority.
Partager