>Cetin,
>
>If one puts the RecordSource SQL statement in the Init() of the grid as you suggest, are you then going to have to add the appropriate columns in code?
>
>I can think of no way to add the columns in the property sheet and have them instantiate without a recordsource already defined.
>
>I'm curious how you do this.
>
>Regards,
I already forgot the original question :) He might have a simple form like this :
define class myForm as ShowRecs
Datasession=2
add object myGrid as Grid with ReadOnly=.t.
Procedure Init
lparameters tcSQL
with this.myGrid
.Recordsourcetype = 4
.Recordsource = tcSQL
endwith
enddefine
Cetin