Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2003 Server
>I do like this. For BOLD and backcolors / forecolors
>This code can go in the page activate or grid Afterrowcol event
>
>for i = 1 to thisform.pageframe1.page1.Grid1.ColumnCount
> xcol = "column"+allt(str(i))+'.'
> thisform.pageframe1.page1.grid1.&xcol.DynamicFontBold = ;
> 'IIF(mark="Y", .t., .f.)'
>endfor
>
>thisform.pageframe1.Page1.Grid1.column1.dynamicbackcolor = 'iif(mark="Y",rgb(0,255,255),rgb(255,255,255))'
>Hope this helps. Not positive I understand all your needs.
Dorothy,
Thanks for your suggestion. My case is a little different. I want the row that the user has selected to be highlighted. That requires that the column sparse property be set to .T.
But, I also want the NullDisplay property for some of the columns to work, and for that, the column sparse property must be set to .F.
What you are suggesting is that for the columns where I have the sparse property set to .F., I set the DynanicBackcolor and DynamicForecolor. For me to do that, I need to have some indicator of whether the cell is in a selected row. Any idea of how I can determine that?
I hope I have made this more clear.
Thanks,
Jim
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement