General information
Category:
Forms & Form designer
Title:
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)
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only