How do I make text selectable (so I can copy) in a DataGridColumn?
+3
A:
Create a custom component with a selectable label and assign it to the itemRenderer property of the data grid column:
DGCRenderer.mxml
<mx:Label xmlns:mx="http://www.adobe.com/2006/mxml" selectable="true">
</mx:Label>
Main.mxml
<mx:DataGridColumn dataField="name" headerText="Name" itemRenderer="DGCRenderer"/>
Amarghosh
2009-09-16 09:20:53
ok thanks, had hoped to avoid creating a custom itemRenderer.
Niels Bosma
2009-09-17 09:34:38