Welcome Guest Search | Active Topics | Sign In | Register

Set background Colur of a cell in EO.Grid Options
Rory
Posted: Monday, March 3, 2008 2:53:11 PM
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
eo_support
Posted: Monday, March 3, 2008 3:21:42 PM
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
eo_support
Posted: Wednesday, March 5, 2008 8:20:27 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.