Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping changes in Grid cells
Message
From
05/11/2003 14:06:26
 
 
To
05/11/2003 11:12:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00846055
Message ID:
00846711
Views:
24
Again, as I told Trey, I've got wait windows in the before and after rowcolchange events. Neither is showing. The cell has the focus and I can change the value, but nothing else is going on as far as I can tell. Have I mentioned my intense love of grids?


>Dorris,
>
>If the cell got focus and it contained an editable control, then the control also got focus (unless the column is readonly -- you might check that). But if you were able to see changes being made to the text as you edited, then the control has focus.
>
>If the control has focus, when it loses focus the controls Valid() and LostFocus() events MUST fire.
>
>So, step by step, try to figure out what is happening. Grids are notoriously difficult to debug using the debugger because the grid loses focus when the debugger gains focus, and this causes undesirable things to happen.
>
>Try using a WAIT WINDOW in the LostFocus() and Valid() events just to confirm that the event are firing. Don't forget the DODEFAULT().
>
>If the Windows appear, then the events are firing, and something else is wrong.
>
>Regards,
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform