Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid problem - ControlSource issues
Message
From
21/09/1998 10:09:24
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00139015
Message ID:
00139019
Views:
33
>I have a grid that is based on a parameratized view. The grid has 10 columns, 8 of which have a view.field as a ControlSource. The last 2 columns are calculated values and have no ControlSource. VFP however, insists on showing 2 of the views fields in these columns instead. I found in help that this is a "Feature" of ControlSource for a Column in a grid. Any suggestions on how to work around this would be greatly appreciated. TIA

You should use controlsource:
Grid.ColumnX.Controlsource="thisform.getcolumnX()"
GetcolumnX is form's custom method where you will put your calculations. If calculation code is not complicated (e.g. IIF...) then you can type it directly to property sheet.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform