General information
Category:
Object Oriented Programming
Title:
Another stupid Grid question
Hi all...
Ive tried creating a 2 column grid with the second column being a check box but i cant get the checkbox to click, the code is below, i know this is probably gone over a bunch every month but could someone please point out my mistake or ommission....
thanks everyone!
Jim Garner
**********
thisform.AddObject('Grid1','Grid')
thisform.grid1.column2.addobject('check1','checkbox')
with thisform.grid1
.Left=22
.width=189
.top=41
.height=273
.headerheight=20
.columncount=2
.deletemark=.f.
.recordmark=.f.
.Visible=.T.
.recordsource='auditv'
.recordsourcetype=1
.scrollbars=2
endw
*** column 1 ***
with thisform.grid1.column1
.alignment=0
.width=97
.controlsource='left(auditv.vendor,15)'
.readonly=.t.
.Header1.backcolor=rgb(192,192,192)
.Header1.Caption='Vendor #'
endw
****************
*** column 2 ***
with thisform.grid1.column2
.alignment=2
.width=75
.controlsource='auditv.audit'
.currentcontrol='check1'
.sparse=.f.
.Header1.backcolor=rgb(192,192,192)
.Header1.Caption='Audit/Hold'
.check1.alignment=0
.check1.caption=''
.check1.value=.f.
endw
****************
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