>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.check1.Visible = .T. > .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 >>