Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Grids
Message
From
01/12/1997 12:28:05
Michael Knelsen
Technology Management Corporation
Regina, Saskatchewan, Canada
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00063026
Message ID:
00063071
Views:
41
>>I am having the following problem with my grid. I have this grid on a page frame,
>>and I need one column of the grid to be always filled in. When I click on the
>>add button to add a line to the grid, focus is automatically set to the column
>>and new row in the grid. My problem is if the person clicks on the page somewhere,
>>the valid event fires, but focus is lost in the grid and focus is set to the page
>>tab. Is this a VFP bug?? Is there a work around??
>
>Sounds to me as if it's working as designed, more or less. If you click on the page,
>the page should get focus. If you don't want the page to get focus, set the
>Page.GetFocus to something like:
>
>This.grd1.SetFocus()
>NODEFAULT
>
Yes, the page is working fine, and I want it to be able to have focus, but I don't want the blank record to be able to be saved to the database. Since clicking on the page is firing the Valid() event, but is not keeping the focus in the in the grid, there is a hole in which invalid data could be saved into the database.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform