Rank: Member Groups: Member
Joined: 9/13/2011 Posts: 11
|
Im using the grid in an application. I want to format individual cells with a background/foregroung color and font size. I could not find any reference in your samples. Can this be done ?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, If all cells have the same style, then you can set CellStyle on the GridItemStyleSet object (for the whole Grid) or GridColumn object (for the column): http://doc.essentialobjects.com/library/1/eo.web.griditemstyleset.cellstyle.aspxhttp://doc.essentialobjects.com/library/1/eo.web.gridcolumn.cellstyle.aspxIf you only want to set the style for a single cell, you can use conditional formating: http://demo.essentialobjects.com/Demos/Grid/Features/Conditional%20Formatting%20-%20Cell%20Based/Demo.aspxYou can also set the cell's HTML to include style information. For example, instead of setting the cell value as "text", you can set it as "<div style='color:red'>text</div>". Thanks!
|