Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids & SQL cursors
Message
De
18/06/1996 13:10:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00002374
Message ID:
00002505
Vues:
31
>>Hi Tom,
>>
>>Try this:
>>in the init event of your form or whenever you
>>asign the data to your grid:
>> * Reset your grid's recordsource (this is
>>important)
>> ThisForm.grid.RecordSource = ""
>> * Create the cursor:
>> SELECT * FROM MyTable INTO CURSOR MyCursor
>> * Assign the cursor to your grid:
>> ThisForm.grid.RecordSource = "MyCursor"
>> * Refresh it!
>> ThisForm.grid.Refresh()
>>
>>You must have the grid.RecordSourceType = 1.
>>
>>Hope this helps.
>>
>
>
>Jose'
>
>Thanks! It helps! It is not working 100% yet but
>at least the column widths are remaining the same
>(not shrinking). This gives me one or two more
>ideas (I'm a glutten for punishment!) That I will
>try.
>
>Thanks
>Tom
>
There is a trick in FoxPro Advisor April 1996 page 28 «Refresh
Grid.RecordSource» published by Drew Speedie that work fine.

The idea is to base a grid on a view, likely a paramete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform