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>

Reply via email to