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--