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.selectedItem as XML;
var myName:String = myval...@name.

Make sense?

-Julian




________________________________
From: Dan Pride <[email protected]>
To: [email protected]
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


__.._,_.___
Reply to sender | Reply to group Messages in this topic (1) 
Recent Activity:        * New Members 34   
Visit Your Group Start a New Topic 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE
Mom Power: Discover the community of moms doing more for their families, for 
the world and for each other 
 
Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
. 

 


      

Reply via email to