| | |
cfgrid inside an HTML table... possible?
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Solved Threads: 0
I'm trying to use an HTML table layout to "organize" several components, one of which is an cfgrid... but nothing shows up, the cfgrid doesn't populate. In fact, in the following example, only the first row of the HTML table is painted in the browser.
here's a sample:
This situation applies to multiple queries, and works very well when you remove the <table> elements altogether... I haven't been able to find anything to support this method or not support it...
Any help would be greatly appreciated,
Thanks,
-X
here's a sample:
ColdFusion Syntax (Toggle Plain Text)
<html> <body> <table> <tr> <td> some title </td> </tr> <tr> <td> <cfquery name="getEmp" datasource="MYDSN"> select * from emp </cfquery> <cfform format="flash" skin="haloSilver"> <cfgrid name="empGrid" query="getEmp" rowheaders="false"> <cfgridcolumn name="First" header="First Name" width="120"> <cfgridcolumn name="Last" header="Last Name" width="120"> </cfgrid> </cfform> </td> </tr> </table> </body> </html>
This situation applies to multiple queries, and works very well when you remove the <table> elements altogether... I haven't been able to find anything to support this method or not support it...
Any help would be greatly appreciated,
Thanks,
-X
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Solved Threads: 0
hi
xf....
You can have this code now its working just change the datasource name in query tag....
its working fine at my side
xf....
You can have this code now its working just change the datasource name in query tag....
its working fine at my side
ColdFusion Syntax (Toggle Plain Text)
<html> <cfquery name="getEmp" datasource="#application.dsn#"> select * from emp </cfquery> <body> <table> <tr> <td> some title </td> </tr> <tr> <td> <cfform format="flash" skin="haloSilver"> <cfoutput> <cfgrid name="empGrid" query="getEmp" rowheaders="false"> <cfgridrow data="firstname" > <cfgridcolumn display="yes" name="firstname" header="First Name" width="120"> <cfgridcolumn name="lastname" header="Last Name" width="120"> </cfgrid> </cfoutput> </cfform> </td> </tr> </table> </body> </html>
![]() |
Similar Threads
- How to change the color of selected row of an HTML table without using CSS or Javascr (VB.NET)
- Navigation (Paging) in HTML table in VB.NET. (VB.NET)
- HTML table vertical aligning problem (HTML and CSS)
- need advice on nested loops. (PHP)
- html table to .csv (HTML and CSS)
- Need help with HTMl Table echoing? (PHP)
Other Threads in the ColdFusion Forum
- Previous Thread: Connectiong to a remote web service!!
- Next Thread: Help with a query: returning rows from a coma delimited list of integers...
| Thread Tools | Search this Thread |





