Skip navigation
Currently Being Moderated

cfgird

Mar 30, 2012 11:56 AM

Hi,

 

I have the serach form with three fields: category (dropdown), enterdate(text) and lname (text).  the results is displayed from the cfgrid on the same page of the form.  I don't want the column catgory shows on the cfgrid unless i select it from the dopdown box.  i try the code below but it didnt work, can you help?

 

Thanks

 

<cfform name="gridform">

<cfgrid name="mygrid"

           format ="html"

           title="Results"

           selectedMode="single"

           pagesize ="10"

          bind ="cfc:myacc.report.search({cfgridpage},{cfgridpagesize},{cfgridsortco lumn},{cfgridsortdirection},

                    {cat_id},{enter_date},{l_name})"

     <cfif form.cat_id neq "">

          <cfgridcolumn name=cat_id" header="Category" />

     </cfif>

          <cfgridcolumn name="enter_date" header="Created Date" />

          <cfgridcolumn name="l_name" header ="Last Name" />

     </cfgrid>

    

</cfform>

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points