On Dec 28, 2009, at 3:25 PM, John wrote:
> Is is possible to set the background color of a cell to any color when the
> row is selected?
>
> When selecting a row the background color of all the cells is blue (using row
> as selection mode). I would like to set one cell background color to red,
> green or any other color.
>
> I have attempted to use "CelHighlightColour" but that appears to apply to the
> grid and not the cells.
I would experiment with the DynamicCellBackColor and
DynamicCellForeColor properties. Can't say I've done what it sounds like you're
trying to do, but there's a good chance those will do what you need. Otherwise,
you will need to create a custom renderer for the columns in question.
> Tried grid.SetCellBackgroundColour(0,1,wx.color(0,255,0)) also does not work.
Dropping to the wx layer is always dicey, since the Dabo wrappings can
easily undo those calls.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]