Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

automatically refresh datagrid

360 views
Skip to first unread message

char

unread,
Sep 3, 2009, 2:17:02 AM9/3/09
to
Hi,

Is it possible to refresh datagrid on a set time interval? datagrid's
recordsource is either cursor or table.

Thanks for you time
Char

Stefan Wuebbe

unread,
Sep 3, 2009, 2:34:43 AM9/3/09
to
"char" <ch...@discussions.microsoft.com> wrote in message
news:B38C9C12-93CF-4484...@microsoft.com...

Hi Char -

Yes. Do you mean Vfp's native Grid class? If so, it depends on the
grid.RecordSource type - if it's a Local/Remote View, you can
Requery(theGrid.RecordSource), similar for CursorAdpaters.
If it's a table DBF alias, you can (take a look Set Refresh in Help and)
do a theGrid.Refresh() in yourTimer.Timer().
If it's a temporary cursor, e.g. a "Select ... Into Cursor ..." result,
you'd
need to recreate it - in the latter case, you'll also need to care for
"grid reconstruction", see also http://groups.google.com/advanced_search


hth
-Stefan

char

unread,
Sep 3, 2009, 2:25:02 PM9/3/09
to
Stefan,

Mainly, it will be a table or a cursor. I will dig more based on your
suggestion. Thanks for your time.

Char

0 new messages