User Guide

84 CFML Language Reference
Example <!--- This example shows the CFGRIDCOLUMN tag in action --->
...
<CFGRID NAME="FirstGrid" WIDTH="450"
QUERY="GetCourses" INSERT="Yes"
DELETE="Yes" SORT="Yes"
FONT="Tahoma" BOLD="No" ITALIC="No"
APPENDKEY="No" HIGHLIGHTHREF="No"
GRIDDATAALIGN="LEFT"
GRIDLINES="Yes" ROWHEADERS="Yes"
ROWHEADERALIGN="LEFT" ROWHEADERITALIC="No"
ROWHEADERBOLD="No" COLHEADERS="Yes"
COLHEADERALIGN="LEFT" COLHEADERITALIC="No"
COLHEADERBOLD="No" SELECTCOLOR="Red"
SELECTMODE="EDIT" PICTUREBAR="No"
INSERTBUTTON="To insert" DELETEBUTTON="To delete"
SORTASCENDINGBUTTON="Sort ASC" SORTDESCENDINGBUTTON="Sort DESC">
<CFGRIDCOLUMN NAME="Course_ID" DATAALIGN="LEFT"
BOLD="No" ITALIC="No"
SELECT="No" DISPLAY="No"
HEADERBOLD="No" HEADERITALIC="No">
<CFGRIDCOLUMN NAME="Dept_ID" HEADER="Department"
HEADERALIGN="LEFT" DATAALIGN="LEFT" BOLD="Yes" ITALIC="No"
SELECT="Yes" DISPLAY="Yes" HEADERBOLD="No" HEADERITALIC="Yes">
<CFGRIDCOLUMN NAME="CorNumber" HEADER="Course ##"
HEADERALIGN="LEFT" DATAALIGN="LEFT"
BOLD="No" ITALIC="No"
SELECT="Yes" DISPLAY="Yes"
( ) Places parentheses around the mask if the number is
less than 0.
+ Places + in front of positive numbers, - (minus sign) in
front of negative numbers.
- Place " " (space) in front of positive, - (minus sign) in
front of negative numbers.
, Separates thousands with commas.
L,C Specifies left-justify or center-justify a number within
the width of the mask column. L or C must appear as the
first character of the mask. By default, numbers are
right-justified.
$ Places a dollar sign in front of the formatted number. $
must appear as the first character of the mask.
^ Separates left from right formatting.
NumberFormat Mask Characters (Continued)
Character Meaning