gridExample.cfm
<cfquery 
    name="GetParks" datasource="cfdocexamples" 
    cachedwithin="#CreateTimeSpan(0, 6, 0, 0)#">
            SELECT PARKNAME, REGION, STATE
        FROM Parks
                Where REGION = 'Southeast Region'
        ORDER BY ParkName, State
</cfquery>
<cfform name="GridForm" action="">
<cfgrid name="Brand_Grid" selectmode="row" selectonLoad="no" BindOnLoad="no" 
query="GetParks" format='html' appendKey ="yes" >
<cfgridcolumn name="PARKNAME"
header="PARKNAME"
headeralign="center"
headerbold="Yes">
<cfgridcolumn name="REGION"
header="REGION"
headeralign="center"
headerbold="Yes">
</cfgrid>
</cfform>
<cfdiv id="id_DivEditeSiteDetail" 
bind="url:gridOutput.cfm?PARKNAME={GridForm:Brand_Grid.PARKNAME}"></cfdiv>

gridOutput.cfm
<h3>Echoing main page input:</h3>
<cfoutput>
    <cfif isdefined("url.PARKNAME") AND url.PARKNAME NEQ "">
        <cfoutput>
        <table>
          <tr>
          <td>Park Name:</td>
          <td><input value="#url.PARKNAME#" name="ParkName" 
type="Text"></td></tr>
        </table>
        </cfoutput>
    <cfelse>
        No input
    </cfif>
</cfoutput>


> I can't seem to figure out how to bind a selected column value in a 
> CFGRID to a text box later on the page. Any ideas?  Thanks 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335883
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to