You need to use a labelFunction. <mx:DataGridColumn headerText=" private function lfShowPOS(item:Object, , column:DataGridColumn):void{ var sLabel:String = "" var sHeaderText:String =
column.headerText; //you could probaly also use index, or dataField switch (sHeaderText) { case "X Pos": sLabel = item.position.x; break; case "Y Pos": sLabel = item.position.y; break; } return sLabel; From: Hi all! I've just started with Flex and I have some
doubts I hope -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|