I cant tell you why this is the case, but if i lowercase the var
"firstname" in the gridcolumn and the bind var then it works fine.

Here is my example code from yours.

<cfscript>
        artists = queryNew('firstname,lastname,city','varchar,varchar,varchar');
        queryAddrow(artists,1);
        querySetCell(artists,'firstname', 'simeon');
</cfscript>

<cfform format="flash" width="500" scriptsrc="scripts">

       <cfgrid name="grid" query="artists" selectmode="single">
               <cfgridcolumn name="firstName" header="First Name">
               <cfgridcolumn name="lastName">
               <cfgridcolumn name="city">
       </cfgrid>
        <cfinput type="text" label="First Name" name="city"
bind="{grid.selectedItem.firstName}">
</cfform>

My first guess was that it was  a case-sensitive issue because the
binding vars are done in flash so they are case-sensitive unlike the
rest of cf.  I am guessing it has something to do with how the data
gets into flash.  I know on queries that are returned via remoting
they do funny things like uppercase all the variable names and such,
so I would expect that the reasoning is likely the same.

i am sure someone with more knowledge on this will chime in.  I just
wanted to share so you can keep trudging along :)

simeon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210531
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to