Skip to main content
Inspiring
December 6, 2012
Question

cfgrid in coldfusion 7

  • December 6, 2012
  • 1 reply
  • 798 views

Hi,

I have the simple query for select * from the table and try to display results into cfgrid but i got nothing show on the page. what's wrong with this?

Thanks

<cfform>

   <cfgrid name = "FirstGrid" format="flash"

      height="320" width="580"

      font="Tahoma" fontsize="12"

      query = "qname">

   </cfgrid>

</cfform>

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
December 11, 2012

It should work. Dump the query to verify whether there is any data going into the grid.

How do I know it should work? By testing your exact code with the cfdocexamples datasource that ships with ColdFusion. The following code gives me a Flash grid:

<cfquery name="getCourses" datasource="cfdocexamples">

select *

from courses

</cfquery>

<!--- <cfdump var="#getCourses#"> --->

<cfform>

   <cfgrid name = "FirstGrid" format="flash"

      height="320" width="580"

      font="Tahoma" fontsize="12"

      query = "getCourses">

   </cfgrid>

</cfform>