Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and color
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00806680
Message ID:
00806802
Views:
9
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform