Forum > FPSpreadsheet

Documentation/List of events that trigger Stringgrid writes


I get that .Invalidate will trigger a refresh of the Stringgrid.   However, is there an exhaustive list some place of events that trigger a grid UI update? I'm wondering if individual cells always update when assigned, if you can update a column or row without refreshing the entire grid, etc.

I doubt that such a list exists, but open unit grids.pas (in the lcl folder of your Lazarus installation) and search yourself for "Invalidate" -- you will get lots of occurencies.

Basically the grid (or part of it) is redrawn when something affecting its visual appearance happens. Not in every case the entire grid is painted, there are also InvalidateCell, InvalidateRow, InvalidateCol, InvalidateRange methods.


[0] Message Index

Go to full version