>I need to execute some code when a grid loses focus (I know it's actually a control inside the grid that has the focus). The grid's valid event is fired even when just changing rows or columns. So, how can I tell when the focus leaves a grid (and not just moving between controls within the grid)? I really don't want to have to put my code in the gotfocus of everything else.
Joel,
I don't believe you are correct. The Valid() fires only when you leave. If you are trying to debug, you may be seeing effects of the debugger. If you put a DEBUGOUT PROGRAM() in the Valid(), you'll see it only fires when you leave...which is just what you want.
Charlie
Charlie