Does it happen only when run in the IDE?

Only when compiled?

Have you tried running it on different machines?

Are you sure your DBGrid component is healthy (not corrupt)?