Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LostFocus in Grid
Message
From
22/04/2001 07:46:04
 
 
To
21/04/2001 13:39:17
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00498275
Message ID:
00498363
Views:
18
This message has been marked as the solution to the initial question of the thread.
Hi Kam.

>>I have VALID method in both Grid and a textbox column in the Grid. When
the focus in the textbox column, returning .F. in the Valid method of the
textbox does not prevent the Focus from leaving the grid.
How do I stop the fcous from leaving the Grid? <<

This is a known bug. The Valid of the grid fires before the valid of the textbox in the grid column. All you have to do is add this to the grids Valid:
llRetVal = This.Column.Textbox.Valid()
IF llRetVal
   *** Grid level validation here
ENDIF
RETURN llRetVal
Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform