MACROMEDIA COLFUSION MX 7-CFML Reference page 205

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

cfgridrow
Description
Lets you define a
attribute is specified in the
Category
Forms tags
Syntax
<cfgridrow
data = "col1, col2, ...">
See also
cfgrid, cfgridcolumn, cfgridupdate, cfform, cfinput, cfselect, cfslider,
cftextarea,
cftree
Attributes
Attribute
Req/Opt Default
data
Required
Example
The following example shows how you use the
data:
<!--- Set two lists, each with the data for a grid column. --->
<cfset cities = "Rome,Athens,Canberra,Brasilia,Paris">
<cfset countries = "Italy,Greece,Australia,Brazil,France">
<cfform name = "cities">
<cfgrid name="GeoGrid" autowidth = "yes" vspace = "4"
height = "120" font="tahoma" rowheaders="no">
<cfgridcolumn name="City" header="City">
<cfgridcolumn name="Country" header="Country">
<!--- Loop through the lists using cfgridrow to poplulate the grid. --->
<cfloop index="i" from="1" to="#ListLen(cities)#">
<cfgridrow data ="#ListGetAt(cities, i)#,#ListGetAt(countries, i)#">
</cfloop>
</cfgrid><br><br>
</cfform>
control that does not use a query as source for row data. If a query
cfgrid
tag, the
cfgrid
Description
Comma-delimited list of column values. If a value contains a
comma, it must be escaped with another comma.
tags are ignored.
cfgridrow
tag can populate a
cfgridrow
tag from list
cfgrid
cfgridrow
205

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents