Welcome Guest Search | Active Topics | Sign In | Register

Format individual cells Options
Allender
Posted: Saturday, October 15, 2011 5:51:40 PM
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 ?
eo_support
Posted: Monday, October 17, 2011 9:00:27 AM
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.aspx

http://doc.essentialobjects.com/library/1/eo.web.gridcolumn.cellstyle.aspx

If 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.aspx

You 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!


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.