Garry,
You need a combination of LockScreen, Grid.RelativeRow, Grid.RelativeColumn,
Grid.Doscroll to do this successfully. Keep track of the key of the current
row along with the column number and RelativeROw/Column. Lock the screen,
refresh the grid and then use DoScroll to get to the correct row until you
are positioned in the same place as before the refresh. The trick bit is
disabling the refresh if you are in edit mode - for obvious reasons.

Unfortunately I am not at a machine with VFP at the moment or I'd email a
sample to you, but if you can't sort it out quickly I'll post some demo code
over the weekend which I use when I'm in Client/Server mode to keep grids
refreshed.

Don't expect anything Sunday though as I'll probably be celebrating
(hopefully) passing my final flying instructors exam so that I can be paid
for having people sitting next to me - but trying to kill me!

Dave Crozier



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Garry Bettle
Sent: 22 February 2008 12:15
To: [email protected]
Subject: Grids - How to keep row position but update all rows.

Howdy all,

Roll on the weekend...

I have a grid, which is updated, via a timer, from the response of an
webservice API.

What I'd like to do is to be able for the user to be viewing any
row\column of the grid, while the other rows are updated.  At the
moment, if the timer fires and the grid is refreshed, the view is
restated to the top of the grid.

Do I need to use a container?

Cheers,

Garry


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to