Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
23/01/1997 16:36:11
 
 
To
23/01/1997 14:38:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Grid
Miscellaneous
Thread ID:
00018248
Message ID:
00018266
Views:
38
>>I have a grid on a form. There are 9 fields. Not all of the fields have a
>>value. I put an add button to add another record and it works great. the
>>problem is when the user hits the add buttom the grid does not go to where
>>the user needs to be. Instead it goes to the last column the user was, and
>>not the first column. In other words if He/She was in the 3ed column and
>>hit the add button than after hitting the tab key He /She would be at the
>>new record but only at the 3ed column. Please help. Thanks.
>
>My first try to solve this was to use the ThisForm.Grid.Column3.SetFocus()
>but I rapidly found that we couldn't do a SetFocus() to a specific column
>within a grid. Maybe this has change in Visual FoxPro 5.

I ended up putting that code in the click event of the add button and it seem to work. Thanks for the help. By the way I am using VFP 3.0b
Bob Sides
SDGS
Vermillion, SD
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform