Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid doesnot refresh at all !!!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00134005
Message ID:
00134025
Vues:
16
>>>I have a pageframe with 5 pages in a Form. In page 5 the grid with
>>>control source from a table TEMP2.DBF is there.
>>>
>>>In page 2 , I am modyfying the table temp2.dbf ie adding some more columns. Initially I don't have the table temp2.dbf . It is based on another table temp1.dbf
>>>
>>>In Form load event I created table temp2.dbf
>>>
>>>But when I come to page5, the grid is not showing any values .
>>>in any of the columns.
>>>
>>>Before coming to page5 I am creating table temp2.dbf
>>>
>>>Hope you understood,
>>>It 's bothering me from past 5 hours.
>>
>>Try puttting a THIS.Refresh() in the Activate() of Page5.
>>
>>HTH
>
>
>Just Tried it but of no use.

If you are making changes to temp2, you may want to set the recordsource of the grid to empty before you make the changes and then reset it afterwards.

ThisForm.PageFrame1.Page5.Grid1.RecordSource = ''
...Make all the changes to Temp2 here...
ThisForm.PageFrame1.Page5.Grid1.RecordSource = 'Temp2'

Or you could leave the recordsource empty at design time and put the 3rd line in the Activate() of Page5 and the 1st line in the Deactivate() of Page5.

HTH
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform