AdvStringGrid OnCellValidate

Hi, i have a messageDlg inside a OnCellValidate to confirm certain value.
If i press arrow dn after insert a value all work as expected after messagedlg confirmation.
If I press Enter, after messagedlg confirmation the event is fired twice.
What ca i do to avoid this?
Thanks

c++ 10.1 AdvStringGrid 8.7.2.6

You should not use any code that takes the focus away from the grid in OnCellValidate.
Taking the focus away from the grid disturbs the process of gracefully ending a cell editing.
If you want to show a dialog, set a flag in OnCellValidate and trigger the dialog that takes the focus away from the grid from the event grid.OnEditingDone