FMXGrid refresh

I insert simple update code of TMSFMXGrid cell (Cells[i, j]:= 'MyText'') inside to Execute event (Indy SERVER object).

When event is called by Client connection, TMSFMXGrid sometimes (but NOT everytime) does not refresh correctly, but only if focus is called on some cell, it is done.

There is some method to call before update cell code for solve issue?

I have tried with BeginUpdate and EndUpdate but error message is showed....

  1. Did you try to use a Synchronize to synchronize the update on the main UI thread?
    2) Did you try to call grid.UpdateGridCells?