Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional command button in a Grid?
Message
 
To
27/03/1999 21:06:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00202792
Message ID:
00202799
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform