>sorry~ maybe my poor explaination~
>
>now my situation is that:
>i need to add a "table" data into the grid.recordsource, so that the grid will display the record inside the table. my grid setting is:
>
>WITH THISFORM.DET_GRD
> .COLUMNCOUNT = 6
> .RECORDSOURCE = 'RESULT'
> FOR I = 1 TO 6
> SELECT RESULT
> .COLUMNS[I].FORECOLOR = RGB(0,0,0)
> .COLUMNS[I].REMOVEOBJECT("TEXT1")
> .COLUMNS[I].ADDOBJECT("TEXT1","TEXTCL") && textcl is a class which is base on textbox
> .COLUMNS[I].HEADER1.CAPTION = GRD_INFO[I,1]
> .COLUMNS[I].HEADER1.ALIGNMENT = 0
> .COLUMNS[I].CONTROLSOURCE = GRD_INFO[I,2]
> .COLUMNS[I].CURRENTCONTROL = "TEXT1"
> .COLUMNS[I].TEXT1.VISIBLE = .T.
> .COLUMNS[I].SPARSE = .T.
> ENDFOR
> .READONLY = .T.
> .DELETEMARK = .F.
>ENDWITH
>
>and i also want show a more detail data from the table when the user click on the grid textbox, then i create a class of object which is base on textbox
>and hv a textbox.click event to startup a new window, but now when the form run, i found that the "textcl" class didn't addinto the grid. but i hv already remove all the textbox before add the class "textcl"..... is there any problem of my coding above?! pls help~! thx!
Wai,
From files\classes download "Two grid classes" and check init code of "multiselectgrid" class.
Cetin