Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to refresh a grid
Message
De
30/11/2006 11:27:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01173107
Message ID:
01173745
Vues:
12
>>>With a subclassed grid on a form is there any way to include some code in the grid class so that I don't have to explicitly call refresh and setfocus in my "add" and "delete" buttons?
>>
>>1. Thisform.Refresh

>
>Would _Screen.ActiveForm.Refresh() in the Click() of my navbutton class do the same thing?

If there is an activeform, yes.
But for forms with grids on them thisform.refresh might not be desired (and/or provide the wanted effect. It might cause an unwanted record pointer movement (ie: there are realted tables, refreshing parent moves the pointer to the first matching record in child. When child grid has focus refresh might not result in a proper refresh-you don't see what you expected to see. Deleted records do not refresh well with this method. SQL rowsource grids might not refresh at all depending if they have indexes or not etc). If I were you (but I'm not I know:) I would refresh particular grid(s) instead of form. However with plain single grid forms you might do it fairly well using form refresh.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform