Ed Leafe wrote: > 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.
DynamicCellBackColor works. I use it in my app to display items in blue or red depending on state. Actually, I use DynamicCellForeColor but assume BackColor works fine too. Warning though: it can lead to flickering on Windows, even though Mac and Linux work great. Paul _______________________________________________ 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]
