Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / February 2005



Tip: Looking for answers? Try searching our database.

sorting cfgridcolumn by one field, display a different field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adila - 28 Feb 2005 17:06 GMT
Hi,

I would like to know if I can use cfgridcolumn to sort by a field other than
what I want to display. For example, this is my query:
<cfquery name="myQuery"....>
select rank, description
from myTable
</cfquery>

So I want to display the "description" but when I click the header of this
column I want to sort by "rank". Right now it will sort by description. I do
not want to display "rank" because it has no meaning to the user.

<cfgrid query="myQuery" name="mechGrid" rowheaders="no" height="800"
sort="yes">
     <cfgridcolumn name="description" display="true" >    <!---but I want to sort
by "rank" here--->       
</cfgrid>
Mike Nimer - 28 Feb 2005 17:11 GMT
no, the sort is sorting the data in the column, not going back to the query
so this isn't possible.

hth,
---nimer

> Hi,
>
[quoted text clipped - 17 lines]
> by "rank" here--->
> </cfgrid>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.