Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addobject
Message
From
08/05/2004 06:15:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Addobject
Miscellaneous
Thread ID:
00902162
Message ID:
00902162
Views:
67
Hi all

Whenever i adding a checkbox to the grid using addobject,
Why the value in the checkbox cannot be change or i missed out something ?
thisform.mygrid1.columncount = -1
thisform.mygrid1.recordsource = ''
select fromyr
With Thisform.mygrid1
  .RecordSource = 'fromyr'
  .ColumnCount = 2
  .column1.controlsource = 'fromyr.chk'
  .column1.header1.Caption = ''
  .column1.removeobject('text1') 
  .column1.addobject('check1','checkbox')
  .column1.check1.caption = ''
  .column1.sparse = .F.
  .column1.readonly = .F.
  .column2.ControlSource = 'fromyr.kodid'
  .column2.header1.Caption = 'Course ID'
  .column2.Width = 120
  .column2.alignment = 2
  .column2.readonly = .T.
endwith
Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform