How to display data in a html format grid in ColdFusion

cfgrid - display data in a html format grid

cfgridhtml.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfgrid tag example: how to display data in a html format grid</title>
</head>

<body>
<h2 style="color:DodgerBlue">ColdFusion cfgrid example: HTML Format</h2>

<cfquery name="qEmployee" datasource="cfdocexamples">
 SELECT Emp_ID,FirstName,LastName,Email FROM Employees
</cfquery>

<cfform method="post" name="GridExampleForm">
 <cfgrid 
     name="Employee" 
        query="qEmployee" 
        format="html" 
        width="400" 
        height="350"
        >
 </cfgrid>
</cfform>
</body>
</html>





More ColdFusion examples