Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sizing objects in a grid column
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00036205
Message ID:
00036818
Views:
42
>Now here's a good one. I'd like the captions on these buttons to be dynamic, to reflect some value in a table. Without a .ControlSource property, I've not been able to do this. Any ideas?
>
>Steve

You could use DynamicCurrentControl:
1. Add couple commandbuttons with specific captions (hopefully you need in few) to particular column.
2. Issue something like:
this.column3.dynamiccurrentcontrol="iif(table.number!=1,'Command1','Command2')"
in Grid event and set Column3.Sparse=.F.
In this example you will see either Command1 or Command2 (with different captions) depending on 'number' value.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform