I need to change the background of a cell based on values of multiple cells. Example in Pseudo Code:
Percentage = Actual Value / Target Value
IF (Percentage < 33)
Cell Color = Red
ELSE IF (Percentage < 66)
Cell Color = Orange
ELSE
Cell Color = Green
I found this:
That’s nice, but it doesn’t show an example of getting a value from another cell in the same row. I need an example and the above link does say it is possible:
“…allows you to customize the appearance of cells dynamically (depending on their
contents, position, values of other cells, etc…”
Got it:
where fieldTarget is an instance of a
DevExpress.Web.ASPxPivotGrid.PivotGridFieldand then use that value to set the background color..