Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to header in a grid
Message
From
09/04/1999 09:50:23
 
 
To
09/04/1999 09:43:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00206855
Message ID:
00206858
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform