Run the following
cfgrid
example from the Coldfusion documentation. It uses the built-in
database that ships with Coldfusion. So you need to do nothing for
it to run, except copy and paste. If you're satisfied, modify your
own code accordingly.
<!--- Query the database to fill up the grid. --->
<cfquery name = "GetCourses" dataSource =
"cfdocexamples">
SELECT Course_ID, Dept_ID, CorNumber,
CorName, CorLevel
FROM CourseList
ORDER by Dept_ID asc, CorNumber asc
</cfquery>
<h3>cfgrid Example</h3>
<i>Currently available courses</i>
<!--- cfgrid must be inside a cfform tag. --->
<cfform>
<cfgrid name = "FirstGrid" format="html" height="320"
width="580" query = "GetCourses">
</cfgrid>
</cfform>