>Hi all
>
>Is this possible or is there a programatical alternative.
>
>grid.init()
>
this.setall("inputmask", "this.child.inputmask", "column")
>
>or
>
>
this.setall("sparse", "iif(this.child.class = 'txtcurrfld', .F., .T.)", "column")
>
>Please advise.
Hierarchically column sets inputmask unless bound=.f.
However I think you can use the same logic you use in yur txtbox class to get inputmask and apply to column instead (ie: dbgetprop()).
SetAll somewhat awkward to do this. It gets the value once and applies to given classes. What you need is soemthing like this (per column) :
for each oColumn in this.Columns
if pemstatus(oColumn,'txtcurrfld',5)
with oColumn
.InputMask = .txtCurrFld.Inputmask
.CurrentControl = 'txtCurrFld'
.Sparse = .F.
endwith
endfor
PS: I know I know no error check.
Cetin