Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help on labels control in grid
Message
From
17/03/2000 10:59:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Help on labels control in grid
Miscellaneous
Thread ID:
00347056
Message ID:
00347056
Views:
53
i have added a label control in the 3rd column of a grid and like to have the label control display the current value of the controlsource. however, only the first record was evaluated and assigned to all the label.caption. to illustrate the grid output:

name id department(label control)
Name1 001 Marketing
Name2 002 Marketing (when in fact department='IT')

my settings for column 3:
.controlsource = department (fieldname)
.currentcontrol = 'label1'
.selectonentry = .F.
.sparse = .F.

and in the init of the form:
this.grd1.columns(3).label.caption=this.grd1.columns(3).text.value
*this.grd1.columns(3).label.caption=department (doesn't work either)

appreciate anyone's feedback.
ramil 3/17
ramil
~~ learning to stand still
Next
Reply
Map
View

Click here to load this message in the networking platform