Am I correct in thinking that the normal way to set the selected row forecolor is using DisplayLayout.Override, but this will only give me a single colour per grid? So for example, if I want a different forecolor depending on data in that row it won't work?So then the solution would be to use DrawPhases - I can change the colour of most text by setting drawParams.AppearanceData.ForeColor in the DrawElement function on the BeforeDrawForeground phase, however, this doesn't work on all column types, for example DateTimes and URLs. Is there a different phase or attribute I should be checking/changing?Thanks,Campbell
jcwild said:...however, this doesn't work on all column types, for example DateTimes and URLs.
Yeah, I am casing for the element type, but I'm including DataTimeEditorUIElement. However, it still doesn't get affected by BeforeDrawForeground. Is it perhaps boxed up inside another element and something else is drawing over the foreground?
Mike, wouldn't your suggestion of going through the cells be slower?
Ah, fantastic, thanks. That works a treat. :)
Hi Campell,
I believe the UI element you're looking for is MaskedEditUIElement. If you case for this type as well, cells with dates should be affected.