Finish/Close CellEdit

I need to iterate through rows to save modified rows in my DB - no problem so far - that works fine. But rows with currently edited cells are not marked as modified. So I want to finish/close editing of current cell before iterating/saving - otherwise the current edited text is not saved.



There are so many options and features on AdvStringGrid - I tried a lot, but finally it was not working the way I wanted.



Any hints/ideas ? Other/better ways to achieve that ?



Thanks/Regards, Tom

With grid.EditMode, you can check whether the grid is in edit mode, grid.Row indicates the row being edited. When you want to programmatically stop inplace editing, you can call grid.HideInplaceEdit;

Hi Bruno,



thanks - that worked fine !



Regards, Tom