I have a problem that's slowly eating away my soul. I've returned a value object and populated a DataGrid. Now, suppose I want to access the value when the user clicks on the grid. In terms of best practices and assuming a public member of the value object is an ArrayCollection called books, should I access the value through the grid itself (i.e. myDataGrid.selectedItem.bookID) or from the model:
var myCollection:ArrayCollection = new ArrayCollection(); myCollection = model.books; var myValue:String = myCollection.getItemAt(myDataGrid.selectedIndex).name; lblBook.text = myValue; In AS2 I would have used the grid's data property, but in Flex2/Cairngorm my instinct is to avoid this. Thanks in Advance, Mike Britton -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/