>In my generic grid I have the following code in the fresh of the grid that refresh each column:
>LOCAL lnKount, lnPages
>lnColumn = This.ColumnCount
>For lnKount = 1 TO lnColumn
> lcobject = "This.Column" + Alltrim(Str(lnKount))
> &lcobject..refresh()
>Endfor
>
>However I find that if I name each of column on the form this doesn't work. That is something other than column1 etc. Is there any way I can change the above code so that I can name the column and still have the code in each of column refresh when I call the refresh of the grid.
Grid.Refresh()
local ix
with this
for ix=1 to .columncount
with .columns(ix)
.Refresh()
endwith
next
endwith
I'm not sure, why do you want to call column.refresh() though. I never did this...
If it's not broken, fix it until it is.
My Blog