Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make current row bold in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00928174
Message ID:
00928186
Vues:
32
>Dear Sir,

"Sir" is not a good assumption to make on this board, even if Sergey is most likely the one who will answer your question. :-) "Sir or Madam" would work nicely.

>How could I make current row/record bold in grid?

The following code should give you some ideas. I don't know if it's the most efficient way, but it works.
USE HOME(1) + "labels"

loForm = CREATEOBJECT("Form")
loForm.AddObject("grid1", "grdBold")
loForm.Grid1.SetAll("DynamicFontBold", "RECNO() = This.nBoldRow")
loForm.grid1.Visible = .T.
loForm.Show(1)

DEFINE CLASS grdBold as Grid
	nBoldRow = 0
	
	PROCEDURE AfterRowColChange
		LPARAMETERS nColIndex
		This.nBoldRow = RECNO()
		
		This.Refresh
	ENDPROC 
ENDDEFINE
You might also want to look at the Grid.HighlightStyle property.
loForm = CREATEOBJECT("Form")
loForm.AddObject("grid1", "grid")
loForm.Grid1.HighlightStyle = 1
loForm.grid1.Visible = .T.
loForm.Show(1)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform