Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional command button in a Grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00202792
Message ID:
00202799
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform