loObject=THISFORM.grdList.COLUMNx.HEADER1 && (x is the column number) WITH loObject *-- original code wait window str(.parent.columncount) && should produce an error? gives me 1 as a result *-- you should use this instead wait window str(.PARENT.PARENT.ColumnCount) ENDWITHReason: