Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid behaviour.
Message
From
23/05/2003 14:23:14
 
 
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:
00792353
Views:
14
>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!

Save the record number before doing your TABLEUPDATE(). After you've done the update, move the pointer back to the saved record and then refresh things.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform