Double Click To Auto Resize a Column

Hi Bruno,


When I double-click on a column divider the AdvStringGrid auto-re-sizes. This is great, an in-keeping with Excel. However, it would seem the OnColumnSizing event doesn't fire. Is this intended? If so how do I capture the new column size after a double-click re-sizing?

- Steve

Did you try: 

grid.ColWidths[colindex]: integer

Hi Nancy - I can retrieve the column size, I just don't know when the column is resized,


Thanks,

Steve

OnColumnSizing is triggered while the column is being resized. OnUpdateColumnSize is triggered when column sizing ended, thus also when a column size changed through dbl-click.

Thanks Bruno - I didn't know OnUpdateColumnSize existed!