Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid display conflict: highlighted row vs NullDisplay
Message
 
À
18/12/2008 18:48:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01368679
Message ID:
01368718
Vues:
5
>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
Fil
Voir

Click here to load this message in the networking platform