Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid controlsource
Message
From
31/05/1999 00:57:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/05/1999 09:40:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00224496
Message ID:
00224603
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform