View Issue Details

IDProjectCategoryView StatusLast Update
0034546LazarusLCLpublic2021-01-20 01:14
Reportercordylus Assigned ToJesus Reyes  
Status feedbackResolutionopen 
Product Version2.1 (SVN) 
Summary0034546: Resizing headers of TCustomGrid resizes the wrong column with AutoFillColumns and only the first column with SizePriority > 0
DescriptionAttaching an example that reproduces the behavior with TStringGrid.
TagsNo tags attached.
Fixed in Revision
Attached Files



2018-11-12 20:53



2018-11-12 20:54


gridheaderresizebug.gif (138,038 bytes)   
gridheaderresizebug.gif (138,038 bytes)   

Jesus Reyes

2021-01-20 01:14

developer   ~0128441

This behavior has no yet been decided, the purpose of Autofillcolumns is to restrict that all existing (visible) columns 'fill' the grid's client area, in your sample project, it's setup the columns with 'title' headers are fixed-size and the only resizeable column is the 'auto' column, now, if the auto column is shrunk there should be a empty grid space at the right, on the contrary if it's expanded it would mean to grow the grid area so a scrollbar should appear, both conditions are in conflict with the purpose of AutoFillColumns.

I would agree on relaxing this restriction but I couldn't find a solution that works with both values of AutoFillColumns. One solution could be making of AutoFillColumns an enumerated type but we should first have to agree exactly how it will behave. Any ideas?

Issue History

Date Modified Username Field Change
2018-11-12 20:53 cordylus New Issue
2018-11-12 20:53 cordylus File Added:
2018-11-12 20:54 cordylus File Added: gridheaderresizebug.gif
2020-10-27 14:13 Jesus Reyes Assigned To => Jesus Reyes
2020-10-27 14:13 Jesus Reyes Status new => assigned
2021-01-20 01:14 Jesus Reyes Status assigned => feedback
2021-01-20 01:14 Jesus Reyes LazTarget => -
2021-01-20 01:14 Jesus Reyes Note Added: 0128441