Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids & SQL cursors
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00002374
Message ID:
00002469
Vues:
37
>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
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform