Hi all
I could get the following code to work, but alas I am not sure how to transfer all the properties / methods (if defined) from the original header class to the just replaced class. Plus note, I cannot also reuse the name of the original header. This grid is predefined grid I just want to replace the header class for OOPism. Please advise.
FOR EACH loColumn IN THIS.COLUMNS
FOR EACH loObj IN loColumn.CONTROLS
IF loObj.BASECLASS = "Header"
lcName = loObj.NAME
loColumn.REMOVEOBJECT(loObj.NAME)
loColumn.ADDOBJECT(lcName+"a", "ihdrGridHeader")
ENDIF
ENDFOR
ENDFOR