Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and color
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00806680
Message ID:
00806802
Vues:
10
This message has been marked as the solution to the initial question of the thread.
Hi Ali,

If you want to color one column of the grid, you don't need shape. You can use Dynamic Color properties of that column.
WITH Thisform.Grid1.Column1
  .DynamicBackColor = "IIF( Empty(nColor), RGB(128,128,128), nColor)"
  .DynamicForeColor = "IIF( Empty(nColor), RGB(128,128,128), nColor)"
ENDWITH
You may also want to take a look at Images, containers in grid FAQ #7934.

>Hi Everybody,
>
>I have a color field in my table, so I put a shape in one column of my grid. How can I assign the color number of that record to the FillColor of the shape, while I am browsing the grid.
>
>In other words, every record has its own color, which is stored in nColor field of the table. I want to see the color of every record while I am browsing the grid. How can I do that
>
>Thank you,
>Ali
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform