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