User Guide
162 Chapter 2: ColdFusion Tags
width Optional;
see
Description
Column head
width
Column width, in pixels.
font Optional As specified
by
cfgrid
Font of data in column.
fontSize Optional As specified
by
cfgrid
Size of text in column.
italic Optional As specified
by
cfgrid
• Yes: displays grid control text in italics
• No
bold Optional As specified
by
cfgrid
• Yes: displays grid control text in bold
• No
textColor Optional Color of grid element text in column, or an
expression to manipulate color; hex or text.
To enter hex value, use the form
"##xxxxxx", where
x = 0-9 or A-F; use two pound signs or none.
You can enter an expression; for example:
textColor= "(C2 LT 0 ? red : pink)"
This means: If value in Column 2 is less than 0,
display value in red; otherwise, display value in pink.
See “Using expressions in textColor and bgColor
attributes” on page 164.
• Any color, in hex format
• Black
• Red
• Blue
• Magenta
• Cyan
• Orange
• Darkgray
• Pink
• Gray
• White
• Lightgray
• Yellow
bgColor Optional Color of background of grid column, or an
expression to manipulate color.
See “Using expressions in textColor and bgColor
attributes” on page 164.
• Options: same as for
textColor attribute
href Optional URL o r query column name that contains a URL to
hyperlink each grid column with.
hrefKey Optional The query column to use for the value appended to
the href URL of each column, instead of the
column’s value.
target Optional Frame in which to open link specified in href.
Attribute Req/Opt Default Description