TStringGrid.AutoFillColumns Problem lazarus / 10-Designer ---------------------------------------------------------------------- Kunstbanause · 2008-12-15 08:13 Hi, I wanted to add a TStringList to my application. I set AutoFillColumns to True as the width of the stringgrid should be used. But as soon as I set AutoFillColumns to True, I'm not able to resize the columns during runtime. Is this a bug or does it work as designed? ---------------------------------------------------------------------- jesusr · 2008-12-16 16:33 It's the default behaviour by design. This can be modified by adding custom columns (see columns property in object inspector) for each column that you want resize set SizePriority to 0 in object inspector. The SizePriority controlls which column is auto sized, 1 means autosize 0 means fixed size, if all columns are fixed and grid is autofilled then the last column is automatically resized even if it's sizepriority is 0. ---------------------------------------------------------------------- Kunstbanause · 2008-12-17 07:02 Thanks. I will try that. Just one question: Do you know what the properties MinSize and MaxSize for the TGridColumn class mean? ---------------------------------------------------------------------- jesusr · 2008-12-17 22:05 They are supposed to be used togeter with sizepriority to restrict column sizes when the grid is resized, but this is not yet implemented.