Sorry this line makes no sense to me var myName:String = myval...@name. What is the @ symbol? Why does it end in a period? The original Table field was "Name" but myValue.Name doesn't work either.
Thanks for the help. Dan --- On Fri, 11/20/09, Julian Alexander <wb...@ymail.com> wrote: From: Julian Alexander <wb...@ymail.com> Subject: Re: [flexcoders] Syntax Question To: flexcoders@yahoogroups.com Date: Friday, November 20, 2009, 10:53 PM You can't access the value from the column name - getting the selected value will give you the entire row that the datagrid is displaying from which you can get the value you're looking for. In other words, if you have an XMLList as your dataProvider, you can do something like: var myValue:XML = dataGrid.selectedIt em as XML; var myName:String = myval...@name. Make sense? -Julian From: Dan Pride <danielpride@ yahoo.com> To: flexcod...@yahoogro ups.com Sent: Fri, November 20, 2009 9:43:33 PM Subject: [flexcoders] Syntax Question On Creation complete I am filling a datagrid and I want to select the first value listed from the Name Column (NameCol) What is the syntax? dataGrid.selectedIn dex = 0; Value = dataGrid.selectedIt em.NameCol; Does not work. why not? Thanks Dan