Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid controlsource
Message
De
31/05/1999 00:57:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/05/1999 09:40:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00224496
Message ID:
00224603
Vues:
15
>Hello:
>
>I have a grid on form that I want one of the columns
>to be linked to four different fields in the same table
>as only one of the four fields will have a value in a record.
>Can I do this with the grid?
I wouldn't say do but you could do.
If it would be readonly then it's easiest, just go and write an expression to controlsource.
If editable, then things go hard. Create a container and put controls with appropriate controlsources there, possibly overlapping, setting visibility based upon some expression. Set grid.column.controlsource to none, and bound = .f. In dynamiccurrentcontrol call a function which always returns the container's name but does some work to set visibility of controls etc in between.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform