Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid don't show data
Message
De
12/12/1998 13:09:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00166873
Message ID:
00166898
Vues:
14
>I have Pageframe, one of the pages has grid. It's properties values are:
> Grid1.RecordSourceType = 1
> grid1.ControlSource= cursor1
> Grid1.Column1.ControlSource = Cursor1.Field1
> Grid1.Column1.Text1.ControlSource = Cursor1.Field1
> ...And SO on
>
>Cursor1 is created using CREATE CURSOR (field1 C(50),field2 C(150)) in the Thisform.Init.
>
>I fill cursor1 with data in the Thisform.Init, but when I try to show the grid its looks blanks.
Plinio,
Just put qutoes around cursor1 and change it to recordsource :
with thisform.grid1
 .columncount = -1
 .recordsourcetype = 1
 .recordsource = "Cursor1"
 .columncount = fcount("cursor1")
endwith
Columncount=-1 is for resetting columns and columncount = fcount() is for being sure you won't have much (or less although not likely) columns then needed (or you may experience one extra column). You don't need to set column.controlsource or column.text1.controlsource if ypu don't need special ordering, formatting etc.
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