Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic Grid Question
Message
De
18/03/2004 20:14:36
 
 
À
18/03/2004 19:03:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00887734
Message ID:
00887749
Vues:
17
Try separating the CREATE TABLE. Put it in your main.prg
Leave the rest in the Init of the form.


>I have a formset created, with a second form that only displays a grid,
>The data in the grid is to be added by the user and the table and grid are created programatically.
>
>Everything displays properly, except the grid will not accept input
>
>HELP!
>
>CREATE TABLE tempordersdetail ;
> (clinecode c(5), ;
> corderid c(20), ;
> cpartno c(30), ;
> dcost n(8,2), ;
> dqob n(8,1), ;
> dqoo n(8,1), ;
> ldeleted l)
> THISFORMSET.form1.grid1.readonly = .F.
> THISFORMSET.form1.grid1.recordsourcetype = 1
> THISFORMSET.Form1.grid1.recordsource = "tempordersdetail"
> THISFORMSET.form1.grid1.allowaddnew = .T.
> THISFORMSET.Form1.grid1.columncount = 3
> THISFORMSET.form1.grid1.column1.header1.caption = "Line Code"
> THISFORMSET.form1.grid1.column2.header1.caption = "Partnumber"
> THISFORMSET.form1.grid1.column3.header1.caption = "Quantity"
> &&THISFORMSET.form1.grid1.column1.text1.controlsource = "tempordersdetail.clinecode"
> &&THISFORMSET.form1.grid1.column2.text1.controlsource = "tempordersdetail.cpartno"
> &&THISFORMSET.form1.grid1.column3.text1.controlsource = "tempordersdetail.dqoo"
> APPEND BLANK
> THISFORMSET.Form1.grid1.column1.text1.setfocus
> THISFORMSET.Form1.refresh(e)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform