>Hello Fabio
>
>Thanks for your reply, is exactly what i need, also i have a dought about how i use your code on my actual code.
>Your Code
>column_supplier.DynamicCurrentControl("IIF(HideCondition,'','text1')")
>
>My Code is:
>
>local MyForm
>** por cada ecrã (form) que esteja aberto na aplicação
>for each MyForm in _screen.Forms
>
>** Se se tratar do ecrã de BROWLIST de Movimentos de Stocks
>if MyForm.name="BROWLIST"
>
> *!*IF MYFORM.Grid1.Column7.HEADER1.CAPTION = "Nome"
>
> MYFORM.GRID1.COLUMN7.VISIBLE = .f.
> *!*endif
>ENDIF
>next MyForm
>
>Could you replace in your code what i need to write in :
>column_supplier (How to refer this column)
>Hide condition : this code could work ( IIF (MYFORM.Grid1.Column7.HEADER1.CAPTION = "Nome" = .T.,'','Text1'))
>and finally Text1
>
>Many thanks Fabio
My code refers to a condition with RecordSource's fields data,
you code set a all the column to hide if the Header Caption is equal to a value.
MYFORM.GRID1.COLUMN7.DynamicCurrentControl(...)