>Good Morning Armin,
Good afternoon Brian, my Monday is some hours old yet :)
>Well, it's definitely Monday and the label isn't working. Ok, it kinda is, but it doesn't show up at all in the grid container and it's height is not adjusting. I've got the debugger looking at the properties and everything seems fine, except the height doesn't seem to change... this also means I don't think I'll be able to use it to compute the height of a textbox either...
I've just did another test with a label placed directly on a form. WordWrap=.T. and AutoSize=.T. I've changed the caption during runtime and it did change it's height and the height property gave me the correct values.
Maybe you could try to isolate the problem by doing a test with a simple grid and just a textbox and a label in one column. If this works, you could put a container around the textbox and label, put the code to resize the container in and check again.
BTW: Are you aware, that changing the height of the active row by resizing a control in there will change the height of all rows? This might not look very well, when the user walks through the grid. How about determining the maximum height of the text for all rows before loading the data in the grid:
lbl = CREATE("label")
lbl.AutoSize = .T.
lbl.WordWrap = .T.
lbl.fontname = "..."
nMax = 0
SCAN
lbl.Caption = <field>
nMax = MAX(nMax, lbl.Height)
ENDSCAN
lbl = .NULL.
nMax = nMax + some extra pixels
grid.column.container = nMax
grid.column.textbox = nMax
Armin