User Guide

cfgridcolumn 161
cfgridcolumn
Description
Used with the cfgrid tag in a cfform. Use this tag to specify column data in a cfgrid control.
The font and alignment attributes used in
cfgridcolumn override global font or alignment
settings defined in
cfgrid.
Category
Forms tags
Syntax
<cfgridcolumn
name = "column_name"
header = "header"
width = "column_width"
font = "column_font"
fontSize = "size"
italic = "Yes" or "No"
bold = "Yes" or "No"
textColor = "web color" or "expression"
bgColor = "web color" or "expression"
href = "URL"
hrefKey = "column_name"
target = "URL_target"
select = "Yes" or "No"
display = "Yes" or "No"
type = "type"
headerFont = "font_name"
headerFontSize = "size"
headerItalic = "Yes" or "No"
headerBold = "Yes" or "No"
headerTextColor = "web color"
dataAlign = "position"
headerAlign = "position"
numberFormat = "format"
values = "Comma separated strings and/or numeric range"
valuesDisplay = "Comma separated strings and/or numeric range"
valuesDelimiter = "delimiter character">
See also
cfgrid, cfgridrow, cfgridupdate, cfapplet, cfform, cfinput, cfselect,
cfslider, cftextinput, cftree
History
ColdFusion MX: Changed behavior if select = "no": a user cannot select and edit the cell data,
regardless of the
cfgrid selectmode attribute value. When clicked, the cell border (and,
depending on the selectColor value, the cell background) changes color, but the cell data
cannot be edited.
Attributes
Attribute Req/Opt Default Description
name Required Name of grid column element. If grid uses a query,
column name must specify name of a query column.
header Optional Yes Column header text. Used only if
cfgrid colHeaders
= "Yes"
.