Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Basic Grid Question
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)
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement