I got it... I had to ad the i{d of the data grid to expression. {MyLtGrid.selectedItem.Company} then it worked...
--- In flexcoders@yahoogroups.com, "Roger Ross" <[EMAIL PROTECTED]> wrote: > > I remember the dg.selectedItem.comlumnname now, but I can't remember > wher it needs to go. > When I put it on the line with the text input field as > text="{dg.selectedItem.company}" I get an error, so I don't think that > is right. I think it goes in a <mx:Script> block but I am not sure of > the syntax for it. > > The column name in the data grid is Company and I want to display that > value in a text input field that is also on the same form... > > Still very new to Flex and trying to understand all of the syntax that > goes with it!!! > > Thanks, > > Roger > > > --- In flexcoders@yahoogroups.com, "James T. Riffe" <jtriffe@> wrote: > > > > You will need to bind it to the dg.selectedItem.<columnname> > > > > > > > > _____ > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Roger Ross > > Sent: Friday, January 19, 2007 10:07 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] binding a data grid column to a text input control > > > > > > > > Hello, > > > > Flex Newbie! > > > > I found an example of data binding from text input to a label, but I > > need to bind the data from a column in a data grid to a text input > > control! > > > > Any examples? > > > > Thank you, > > > > Roger > > >