Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference to header in a grid
Message
De
09/04/1999 09:50:23
 
 
À
09/04/1999 09:43:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00206855
Message ID:
00206858
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform