Rank: Member Groups: Member
Joined: 6/1/2011 Posts: 18
|
I have a grid control that I have the first column filled in with pre-defined values when the page loads. I'd like to change the style of cells in this first column based on criteria. I've done conditional formatting before use SQL statements and a item style set but not formatting a cell that is not not linked to any data field.
How do I go about changing the cell background to a specific color if it matches some criteria?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, There are two ways to change a GridCell's background. Either through GridColumn.StyleFieldId to evaluate a css class for the cell based on the value of the StyleField, or call this method on the client side directly: http://www.essentialobjects.com/doc/1/jsdoc.public.gridcell.overridestyle.aspxWith the second method, you can apply any style to the GridCell. Thanks!
|