Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
 
To
23/01/1997 14:35:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Grid
Miscellaneous
Thread ID:
00018248
Message ID:
00018349
Views:
33
Welcome, Stranger, to the mysterious Land of Grids. You can check out any time you want but..um..you can never leave? Well, that's how I feel about grids, anyway. They cause no end of pain and suffering for me.

You could try putting some code in the GotFocus method of the grid that sets the focus to the first column (or whichever column you need to be in when you are first adding a new record).

A word of warning about grids: If you have code in the LostFocus method of the column that the user was on when the left the grid, the LostFocus will fire first when they leave the grid and then again once you add the new record.


Michael G. Emmons
>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.

Michael G. Emmons
memmons@nc.rr.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform