Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending Records in Grid and Setfocus()
Message
From
16/02/1999 15:20:38
Rene De Montbrun
Customer Contact Inc.
Toronto, Ontario, Canada
 
 
To
16/02/1999 14:28:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00187925
Message ID:
00188104
Views:
24
>>>>Does anyone know how to set focus to a record that you append to a grid? I am using an Add button with APPEND BLANK and then myGrid.Setfocus().
>
>I usually just do an append blank and then setfocus to the grid, and I'm on the blank record. For a simple example:
>
>
append blank
>_screen.forms(1).grid1.setfocus()
>
>took me to the bottom of the grid (and the blank record).
>Is there something in how your tables are related that's complicating things?

Hi Nancy,

I have my tables and relations defined in the database container. When I add the tables to the data environment of the form, the relations are set automatically. They appear to be OK. My form is one-many-many and the relations and refreshes are working great. The only thing that does not seem to behave is the focus not being on the appended record in the grid. Any other suggestions would be appreciated.

Mystified in Toronto
Rene de Montbrun
Toronto
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform