Rank: Member Groups: Member
Joined: 1/29/2008 Posts: 17
|
Hi,
Is it possible to set the backcolor of a data cell in the EO Grid based on the cells content. I know this can be done to a cloumn, but I need to to this on individual cells, i.e
if cell.value <= 10 then backcolor = lightgreen elseif cell.Value > 10 then backcolor = red.
Many Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi Rory,
Unfortunately the Grid does not do that for you. We are planning on adding this feature but it's not out yet. The easiest way is to format the data to include the colors, for example, instead of giving the grid cell "Text", you can give it "<font color='red'>Text</font>".
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
A new StyleField has been added to GridColumn since build 2007.2.39 to support this. You can now specify this field to instruct the Grid to get an additional "style" value from the data source. The style value would typically derive from other data values.
Thanks
|