AdvGlow button and AdvStringGrid

Hi, 


I have a form which consists of an AdvStringgrid as well as a GlowButton which is used to save the contents of the grid to a file.

I have noticed that if the user clicks into a cell in the grid, changes the value, and then clicks on the 'Save' button, then that last edit doesn't get saved correctly. It's as if the stringgrid doesn't think the edit operation is complete and hasn't internally updated the cell value.

If the save button is changed to a regular TButton type, then I noticed that the value IS saved ok.  

I was wondering if there is some setting in the grid that I have missed that will fix this problem, or maybe a method I can call when the save button is clicked to ensure that the grid data will be up to date before I try to save it to the file.

Thanks in advance,

Matt Jackson

Before performing the saving, call grid.HideInplaceEdit;  This  can be called at all times to ensure that in case there is still an editor active, it is closed and the value is persisted.

Yes that has fixed the problem.
Thank you very much for the help.