>I have a method in a grid so when I click on the header it sorts the cursor by that column. I want to change the FontBold property of the header of that column to .T. and set all others to .F. in the sort method of the grid. I can't figure out how to reference the column header from the method. If I use This.FontBold = .T. then all the fonts of the grid change to bold. This tells me that I am in the grid and must reference the header as a child. I prefer to do this with a This.whatever if it is possible.
>
>Thanks
I guess that you call Grid.Sortgrid from Header.Click, so you may just send parameter to the method:
***Header.Click event
This.Parent.Parent.SortGrid(This)
***SortGrid method
LParameter oHeader
This.SetAll("FontBold",.F.,"Header")
oHeader.FontBold=.T.
** your other code here
Edward Pikman
Independent Consultant