>I am trying to display a command button that will be used
>to invoked the GETDIR() command based on a table.field
>value. I have tried several different methods but am
>unable to only display the command button in a grid column
>based on table.showfld = .T..
>
>How can I conditionally enable the command button based
>on a field value for that particular row in a grid. The
>object is shown as grid.column.commandbutton.
Tom, set
grid.column1.Sparse = .f.
* Grid.Init()
this.column1.DynamicCurrentControl = 'IIF(table.showfld = .T., "command1", "text1")'
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison