Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid behaviour.
Message
From
23/05/2003 21:38:30
 
 
To
23/05/2003 14:16:22
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00792348
Message ID:
00792478
Views:
17
try
lnRecno=RECNO('myfile')
DO FORM AnotherForm with lnRecno
GO lnRecno IN myfile
thisform.grid.column1.SetFocus()
you may need to use keys if you are doing a requery of your view.

Geoff

>I have a grid list which displays a local view.
>These are the settings of some of the properties of the grid:
>
>DeleteMark = .F.
>AllowAddNew = .F.
>ReadOnly = .T.
>RecordMark = .F.
>SplitBar = .F.
>
>I also have several command buttons below the grid one of which is an "Edit button". When clicking on the 'Edit' command button, I pop up "Edit" screen with DO FORM.... and I allow and edit of the fields of the current record the user is on within the grid. I issue a TABLEUPDATE() command to save changes and Refresh() the grid to display the modifications.
>
>My problem is that my grid record pointer goes back to the top of the grid (beginning of the local view). I wish that the pointer stay on the record the user selected without automatically moving to the top.
>
>Is there a way of achieving this?
>
>Thanks to all!
May all your weeds be wildflowers
Previous
Reply
Map
View

Click here to load this message in the networking platform