>I have Pageframe, one of the pages has grid. It's properties values are:
> Grid1.RecordSourceType = 1
> grid1.ControlSource= cursor1
> Grid1.Column1.ControlSource = Cursor1.Field1
> Grid1.Column1.Text1.ControlSource = Cursor1.Field1
> ...And SO on
>
>Cursor1 is created using CREATE CURSOR (field1 C(50),field2 C(150)) in the Thisform.Init.
>
>I fill cursor1 with data in the Thisform.Init, but when I try to show the grid its looks blanks.
Plinio,
Just put qutoes around cursor1 and change it to recordsource :
with thisform.grid1
.columncount = -1
.recordsourcetype = 1
.recordsource = "Cursor1"
.columncount = fcount("cursor1")
endwith
Columncount=-1 is for resetting columns and columncount = fcount() is for being sure you won't have much (or less although not likely) columns then needed (or you may experience one extra column). You don't need to set column.controlsource or column.text1.controlsource if ypu don't need special ordering, formatting etc.
Cetin