Railo 4.2 Reference
Choose a tag:

Tag <CFTABLE>

Builds a table in a CFML page. Use the cfcol tag to define table column and row characteristics. The cftable tag renders data either as preformatted text, or, with the HTMLTable attribute, as an HTML table. Use cftable to create tables if you don't want to write HTML table tag code, or if your data can be well presented as preformatted text.

Body

This tag must have a body.

Example

	<cftable
		[border="boolean"]
		[colheaders="boolean"]
		[colspacing="number"]
		[headerlines="number"]
		[htmltable="boolean"]
		[maxrows="number"]
		query="string"
		[startrow="number"]>

	</cftable>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
border boolean No Adds a border to the table. Use only when you specify the HTMLTable attribute for the table. 
colheaders boolean No Displays headers for each column, as specified in the cfcol tag. 
colspacing number No Number of spaces to insert between columns 'default is 2'. 
headerlines number No Number of lines to use for the table header. The default is 2, which leaves one line between
the headers and the first row of the table. 
htmltable boolean No Renders the table as an HTML 3.0 table. 
maxrows number No Maximum number of rows to display in the table. 
query string Yes Name of the cfquery from which to draw data. 
startrow number No Specifies the query row from which to start processing.