Julian... Apparently you are wrong? When I do it with an untyped var I get an object with an XMLList for each grid column var squat = dataGrid.selectedItem;
This var myValue:XML = dataGrid.selectedIt em as XML; returns null for myValue Why is it such Rocket Science to get the first value in a column? Very frustrating for something that should be so simple. Thanks for the help Dan --- On Fri, 11/20/09, Julian Alexander <[email protected]> wrote: From: Julian Alexander <[email protected]> Subject: Re: [flexcoders] Syntax Question To: [email protected] 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

