>How can I find out all the textbox coltrol in grid? I try
>
>For each oControl IN thisform.grid1.columns
> if oControl.baseclass = 'textbox'
> endif
>endfor
>
>
>But fail...
>
>
>TIA.
The code you're using is only looping through the columns, but not the controls in each column. You need another nested FOR..ENDFOR loop.
For each oColumn IN thisform.grid1.columns
for each oControl in oColumn
if upper(oControl.baseclass) = "TEXTBOX"
endif
endfor
endfor