I see what you have done here but what the color of each cell is
dynamic and will change so if I hardcode this in the
cellbackgroundpaint event it wont work......
Basically I run an SQL query and if it tells the cell is done I turn
it green and if it is not done I turn it red. The data in the cells
and the color is very dynamic so I dont see how I can make this work
based on hardcoding this in the cellbackgroundPaint event......
Sorry if I am being silly about this and overlooking the obvious I
just dont seem to understand.....
Wade
On May 3, 2006, at 7:41 PM, Thom McGrath wrote:
CellBackgroundPaint event. You will be given a graphics object
which you can draw into, and a reference to the cell by row &
column. It would be a good idea to store in a hidden column which
color to draw it as, or something of the sorts. Long story short:
if column = 0 then
if row = 0 then
g.forecolor = &cFF0000
g.fillrect 0,0,g.width,g.height
elseif row = 1 then
g.forecolor = &c00FF00
g.fillrect 0,0,g.width,g.height
end
end
Note that you will get CellBackgroundPaint events for every cell,
even if they do not contain data or even really exist.
--
Thom McGrath, <http://www.thezaz.com/>
"You realize you've created God in your own image when God hates
all the same people you do."
On May 3, 2006, at 10:27 PM, Wade Little wrote:
Now I want to turn the cell(0,0) green and the cell(1,0) to red.
Leaving the other cells as they are.....
How do I do this....I am having trouble with this and it seems
like it should be simple.....
Thanks a ton so I dont go bald before I should from rippping my
hair out!!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>