* gridstuff.prg DEFINE CLASS myGrid AS Grid MemberClass = "myColumn" MemberClassLibrary = "gridstuff.prg" ENDDEFINE DEFINE CLASS myColumn AS Column HeaderClass = "myHeader" HeaderClassLibrary = "gridstuff.prg" Width = 25 ADD OBJECT Text1 AS myText ENDDEFINE DEFINE CLASS myHeader AS Header FontName = "Comic Sans MS" FontSize = 12 Caption = "myHeader" ENDDEFINE DEFINE CLASS myText AS TextBox FontName = "Chick" ENDDEFINEThe above example defines custom classes for myGrid for the Column, Header and TextBox used, so that when you change the column count, you'll use these custom classes instead of the VFP defaults.