Name

cfgridcolumn

Synopsis

<cfgrid> 
  [<cfgridcolumn>]
  [<cfgridrow>]
  ...
</cfgrid>

Specifies individual column data and formatting information within a cfgrid. Values specified for a cfgridcolumn override any attributes set in the cfgrid tag.

Attributes

name=" column_name "

A name for the grid column. If the grid column is populated by a query, name must be the name of an available query column. Required.

bgcolor=" color | expression "

A background color for all the cells in the column or an expression that returns a color based on its evaluation. For color choices, see the textcolor attribute. bgcolor also supports the expression syntax listed for textcolor. Optional. The default is White. New as of ColdFusion 5.0.

bold="Yes|No"

Whether or not to display the column data in bold. Optional. The default is No.

dataalign=" alignment "

Alignment for the column data. Valid entries are Left, Right, and Center. Optional. The default is Left.

display="Yes|No"

Whether or not to display the column in the grid. Optional. The default is Yes.

font=" font_name "

The font name for the data in the column. Optional.

fontsize=" integer "

The font size for the data in the column. Optional.

header=" header "

The text to use for the column’s header. Optional. If no value for header is specified, ColdFusion uses the same value as name.

headeralign=" alignment "

Alignment for the column headers. Valid entries are Left, Right, and Center. Optional. The default is Left.

headerbold="Yes|No"

Whether or ...

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.